Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #55 from Mange/issue-54

Fix issue #54 by calling correct exec method
  • Loading branch information...
commit 163c7fc0524baaf19e8a028304f3526562daabb7 2 parents 3082b9a + 6c369c3
@thibaudgg thibaudgg authored
View
2  lib/guard/spork/spork_instance.rb
@@ -25,7 +25,7 @@ def to_s
def start
@pid = fork do
- exec env, command
+ env_exec env, command
end
store_pid
end
View
2  spec/guard/spork/spork_instance_spec.rb
@@ -101,7 +101,7 @@ class Guard::Spork
it "execs the command with the env in the fork" do
instance.stub(:command => "command", :env => "environment")
instance.should_receive(:fork).and_yield
- instance.should_receive(:exec).with("environment", "command")
+ instance.should_receive(:env_exec).with("environment", "command")
instance.start
end
Please sign in to comment.
Something went wrong with that request. Please try again.