Permalink
Browse files

linux listener (and spec) work

  • Loading branch information...
1 parent 69245d9 commit 31cfcc23d409d09e4465ba86c8ebf2eccee3bf47 @yannlugrin yannlugrin committed with thibaudgg Oct 21, 2010
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/guard/listeners/linux.rb
  2. +1 −1 spec/guard/listeners/linux_spec.rb
@@ -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}/", '') }
@@ -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

0 comments on commit 31cfcc2

Please sign in to comment.