From 10974db6642317aeb09bda83af16efa6192749ed Mon Sep 17 00:00:00 2001 From: John Bintz Date: Thu, 16 Jun 2011 10:13:15 -0400 Subject: [PATCH] use runner instead of calling from shell --- lib/guard/jasmine-headless-webkit/runner.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/guard/jasmine-headless-webkit/runner.rb b/lib/guard/jasmine-headless-webkit/runner.rb index d9851ac..a2ff190 100644 --- a/lib/guard/jasmine-headless-webkit/runner.rb +++ b/lib/guard/jasmine-headless-webkit/runner.rb @@ -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