Skip to content

Commit

Permalink
issue #533: debug with more specific :fake_worker names
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinDKelley committed Mar 21, 2021
1 parent 21cb794 commit c24d860
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/lib/listen/adapter/linux_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
let(:directories) { [Pathname.pwd] }
let(:adapter_options) { {} }
let(:default_events) { [:recursive, :attrib, :create, :modify, :delete, :move, :close_write] }
let(:fake_worker) { double(:fake_worker) }
let(:fake_worker) { double(:fake_worker_for_watch_events) }
let(:fake_notifier) { double(:fake_notifier, new: fake_worker) }

before do
Expand All @@ -53,7 +53,7 @@
let(:adapter_options) { {} }

before do
fake_worker = double(:fake_worker)
fake_worker = double(:fake_worker_for_inotify_limit_message)
allow(fake_worker).to receive(:watch).and_raise(Errno::ENOSPC)

fake_notifier = double(:fake_notifier, new: fake_worker)
Expand All @@ -75,7 +75,7 @@
let(:adapter_options) { { events: [:recursive, :close_write] } }

before do
fake_worker = double(:fake_worker)
fake_worker = double(:fake_worker_for_callback)
events = [:recursive, :close_write]
allow(fake_worker).to receive(:watch).with('/foo/dir1', *events)

Expand Down Expand Up @@ -142,7 +142,7 @@
end

describe '#stop' do
let(:fake_worker) { double(:fake_worker, close: true) }
let(:fake_worker) { double(:fake_worker_for_stop, close: true) }
let(:directories) { [dir1] }
let(:adapter_options) { { events: [:recursive, :close_write] } }

Expand Down

0 comments on commit c24d860

Please sign in to comment.