Skip to content

Commit

Permalink
fix test stubs of Listen::Record
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinDKelley committed Aug 14, 2021
1 parent 95e3e6a commit ffc0608
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/lib/listen/adapter/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _process_event(dir, event)
end

# Stuff that happens in configure()
allow(Listen::Record).to receive(:new).with(dir1).and_return(record)
allow(Listen::Record).to receive(:new).with(dir1, silencer).and_return(record)

allow(Listen::Change::Config).to receive(:new).with(queue, silencer).
and_return(config)
Expand Down
2 changes: 1 addition & 1 deletion spec/lib/listen/adapter/polling_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
allow(config).to receive(:queue).and_return(queue)
allow(config).to receive(:silencer).and_return(silencer)

allow(Listen::Record).to receive(:new).with(dir1).and_return(record)
allow(Listen::Record).to receive(:new).with(dir1, silencer).and_return(record)

allow(Listen::Change).to receive(:new).with(config, record).
and_return(snapshot)
Expand Down

0 comments on commit ffc0608

Please sign in to comment.