use runner instead of calling from shell

This commit is contained in:
John Bintz 2011-06-16 10:13:15 -04:00
parent 545f149a8c
commit 10974db664
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
require 'guard/notifier'
require 'jasmine/headless/runner'
module Guard
class JasmineHeadlessWebkitRunner
@ -7,7 +8,7 @@ module Guard
file = Tempfile.new('guard-jasmine-headless-webkit')
file.close
system %{jasmine-headless-webkit --report #{file.path} -c #{paths.join(" ")}}
Jasmine::Headless::Runner.run(:report => file.path, :colors => true, :files => paths)
notify(file.path)
end