From 3f374460a8c93d13289ce6ab786bc27b6b75f089 Mon Sep 17 00:00:00 2001 From: Dmytrii Nagirniak Date: Sat, 5 Nov 2011 12:26:28 +1100 Subject: [PATCH] Autodetect pahntomjs location --- lib/guard/jasmine.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/guard/jasmine.rb b/lib/guard/jasmine.rb index 6c9591a..68fb4ae 100644 --- a/lib/guard/jasmine.rb +++ b/lib/guard/jasmine.rb @@ -22,7 +22,7 @@ class Jasmine < Guard :server => :auto, :port => 8888, :jasmine_url => 'http://localhost:8888/jasmine', - :phantomjs_bin => '/usr/local/bin/phantomjs', + :phantomjs_bin => `which phantomjs`.chomp, :timeout => 10000, :notification => true, :hide_success => false,