linux listener (and spec) work
This commit is contained in:
parent
69245d9674
commit
31cfcc23d4
@ -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}/", '') }
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user