Skip to content

Commit

Permalink
Stub inotify.process for control flow test.
Browse files Browse the repository at this point in the history
This is necessary, since JRuby doesn't exit process until
an event is received.
  • Loading branch information
netzpirat committed Nov 16, 2011
1 parent 54df839 commit 15006c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/guard/listeners/linux_spec.rb
Expand Up @@ -24,6 +24,7 @@
describe "#start", :long_running => true do
before(:each) do
@listener = Guard::Linux.new
@listener.instance_variable_get(:@inotify).stub(:process)
end

it "calls watch_change on the first start" do
Expand All @@ -40,7 +41,6 @@
start
@listener.unstub!(:stop)
stop
sleep 1
@listener.should_not be_watch_change
end
end
Expand Down

0 comments on commit 15006c5

Please sign in to comment.