Skip to content

Commit

Permalink
use runner instead of calling from shell
Browse files Browse the repository at this point in the history
  • Loading branch information
johnbintz committed Jun 16, 2011
1 parent 545f149 commit 10974db
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/guard/jasmine-headless-webkit/runner.rb
@@ -1,4 +1,5 @@
require 'guard/notifier'
require 'jasmine/headless/runner'

module Guard
class JasmineHeadlessWebkitRunner
Expand All @@ -7,7 +8,7 @@ def run(paths = [])
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
Expand Down

0 comments on commit 10974db

Please sign in to comment.