diff --git a/spec/support/lint.rb b/spec/support/lint.rb index 55b84d5..9a78ee1 100644 --- a/spec/support/lint.rb +++ b/spec/support/lint.rb @@ -6,7 +6,7 @@ let(:instance) { double(:instance, context: context) } it "calls an instance with the given context" do - expect(interactor).to receive(:new).once.with(foo: "bar") { instance } + expect(interactor).to receive(:new).once.with({foo: "bar"}) { instance } expect(instance).to receive(:run).once.with(no_args) expect(interactor.call(foo: "bar")).to eq(context) @@ -25,7 +25,7 @@ let(:instance) { double(:instance, context: context) } it "calls an instance with the given context" do - expect(interactor).to receive(:new).once.with(foo: "bar") { instance } + expect(interactor).to receive(:new).once.with({foo: "bar"}) { instance } expect(instance).to receive(:run!).once.with(no_args) expect(interactor.call!(foo: "bar")).to eq(context) @@ -43,7 +43,7 @@ let(:context) { double(:context) } it "initializes a context" do - expect(Interactor::Context).to receive(:build).once.with(foo: "bar") { context } + expect(Interactor::Context).to receive(:build).once.with({foo: "bar"}) { context } instance = interactor.new(foo: "bar")