mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-09 23:06:06 +00:00
Adapt to latest changes in order cycles controller strong params changes
This commit is contained in:
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user