Skip to content

Commit

Permalink
linux listener (and spec) work
Browse files Browse the repository at this point in the history
  • Loading branch information
yannlugrin authored and thibaudgg committed Oct 21, 2010
1 parent 69245d9 commit 31cfcc2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/guard/listeners/linux.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ def self.usable?

def watch_change
while !@stop
if IO.select([notifier.to_io], [], [], latency)
notifier.process
if IO.select([inotify.to_io], [], [], latency)
inotify.process

unless files.empty?
files.map! { |file| file.gsub("#{Dir.pwd}/", '') }
Expand Down
2 changes: 1 addition & 1 deletion spec/guard/listeners/linux_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

if linux?
it "should be usable on linux" do
subject.should_not be_usable
subject.should be_usable
end

describe "watch" do
Expand Down

0 comments on commit 31cfcc2

Please sign in to comment.