use runner instead of calling from shell
This commit is contained in:
parent
545f149a8c
commit
10974db664
|
@ -1,4 +1,5 @@
|
||||||
require 'guard/notifier'
|
require 'guard/notifier'
|
||||||
|
require 'jasmine/headless/runner'
|
||||||
|
|
||||||
module Guard
|
module Guard
|
||||||
class JasmineHeadlessWebkitRunner
|
class JasmineHeadlessWebkitRunner
|
||||||
|
@ -7,7 +8,7 @@ module Guard
|
||||||
file = Tempfile.new('guard-jasmine-headless-webkit')
|
file = Tempfile.new('guard-jasmine-headless-webkit')
|
||||||
file.close
|
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)
|
notify(file.path)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue