diff --git a/spec/lib/listen/adapter/base_spec.rb b/spec/lib/listen/adapter/base_spec.rb index 0a834749..6cf0cadf 100644 --- a/spec/lib/listen/adapter/base_spec.rb +++ b/spec/lib/listen/adapter/base_spec.rb @@ -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) diff --git a/spec/lib/listen/adapter/linux_spec.rb b/spec/lib/listen/adapter/linux_spec.rb index 9d9caff6..2c8fc8f2 100644 --- a/spec/lib/listen/adapter/linux_spec.rb +++ b/spec/lib/listen/adapter/linux_spec.rb @@ -98,7 +98,7 @@ allow(config).to receive(:adapter_options).and_return(adapter_options) 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::Config).to receive(:new).with(queue, silencer). and_return(config) allow(Listen::Change).to receive(:new).with(config, record). diff --git a/spec/lib/listen/adapter/polling_spec.rb b/spec/lib/listen/adapter/polling_spec.rb index b48854bb..925db745 100644 --- a/spec/lib/listen/adapter/polling_spec.rb +++ b/spec/lib/listen/adapter/polling_spec.rb @@ -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)