Skip to content
Browse files

Fix issue #54 by calling correct exec method

  • Loading branch information...
1 parent 3082b9a commit 6c369c3afb52e4324b66cd91a282139963b85233 @Mange Mange 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
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

0 comments on commit 6c369c3

Please sign in to comment.
Something went wrong with that request. Please try again.