linux listener (and spec) work

This commit is contained in:
Yann Lugrin 2010-10-21 16:48:58 +08:00 committed by Thibaud Guillaume-Gentil
parent 69245d9674
commit 31cfcc23d4
2 changed files with 3 additions and 3 deletions

View File

@ -45,8 +45,8 @@ module Guard
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}/", '') }

View File

@ -12,7 +12,7 @@ describe Guard::Linux do
if linux?
it "should be usable on linux" do
subject.should_not be_usable
subject.should be_usable
end
describe "watch" do