Permalink
Browse files

Merge pull request #55 from Mange/issue-54

Fix issue #54 by calling correct exec method
  • Loading branch information...
2 parents 3082b9a + 6c369c3 commit 163c7fc0524baaf19e8a028304f3526562daabb7 @thibaudgg thibaudgg committed Dec 12, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/guard/spork/spork_instance.rb
  2. +1 −1 spec/guard/spork/spork_instance_spec.rb
@@ -25,7 +25,7 @@ def to_s
def start
@pid = fork do
- exec env, command
+ env_exec env, command
end
store_pid
end
@@ -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

0 comments on commit 163c7fc

Please sign in to comment.