Adapt to latest changes in order cycles controller strong params changes

This commit is contained in:
Luis Ramos
2020-03-04 10:03:04 +00:00
parent 57f8fa26ab
commit 20c7a0d3ef

View File

@@ -203,7 +203,7 @@ module Admin
context "as a manager of the coordinator" do
let(:user) { coordinator.owner }
let(:expected) { [order_cycle, hash_including(restricted), user] }
let(:expected) { [order_cycle, allowed.merge(restricted), user] }
it "allows me to update exchange information for exchanges, name and dates" do
expect(OrderCycleForm).to receive(:new).with(*expected) { form_mock }
@@ -213,7 +213,7 @@ module Admin
context "as a producer supplying to an order cycle" do
let(:user) { producer.owner }
let(:expected) { [order_cycle, {}, user] }
let(:expected) { [order_cycle, allowed, user] }
it "allows me to update exchange information for exchanges, but not name or dates" do
expect(OrderCycleForm).to receive(:new).with(*expected) { form_mock }