linux listener (and spec) work
This commit is contained in:
parent
69245d9674
commit
31cfcc23d4
@ -45,8 +45,8 @@ module Guard
|
|||||||
|
|
||||||
def watch_change
|
def watch_change
|
||||||
while !@stop
|
while !@stop
|
||||||
if IO.select([notifier.to_io], [], [], latency)
|
if IO.select([inotify.to_io], [], [], latency)
|
||||||
notifier.process
|
inotify.process
|
||||||
|
|
||||||
unless files.empty?
|
unless files.empty?
|
||||||
files.map! { |file| file.gsub("#{Dir.pwd}/", '') }
|
files.map! { |file| file.gsub("#{Dir.pwd}/", '') }
|
||||||
|
@ -12,7 +12,7 @@ describe Guard::Linux do
|
|||||||
|
|
||||||
if linux?
|
if linux?
|
||||||
it "should be usable on linux" do
|
it "should be usable on linux" do
|
||||||
subject.should_not be_usable
|
subject.should be_usable
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "watch" do
|
describe "watch" do
|
||||||
|
Loading…
Reference in New Issue
Block a user