spec/integration/abstract/commands/update_spec.rb in rom-http-0.6.0 vs spec/integration/abstract/commands/update_spec.rb in rom-http-0.7.0
- old
+ new
@@ -45,11 +45,11 @@
allow(request_handler).to receive(:call).and_return(response)
allow(response_handler).to receive(:call).and_return(tuple)
end
- subject! { container.command(:users).update.call(attributes) }
+ subject! { container.commands[:users].update.call(attributes) }
it do
expect(request_handler).to have_received(:call).with(dataset)
expect(response_handler).to have_received(:call).with(response, dataset)
is_expected.to eq(tuple)
@@ -104,10 +104,10 @@
allow(request_handler).to receive(:call).and_return(response_1, response_2)
allow(response_handler).to receive(:call).and_return(tuple_1, tuple_2)
end
- subject! { container.command(:users).update.call(attributes) }
+ subject! { container.commands[:users].update.call(attributes) }
it do
expect(request_handler).to have_received(:call).with(dataset_1)
expect(response_handler).to have_received(:call).with(response_1, dataset_1)
expect(request_handler).to have_received(:call).with(dataset_2)