mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-15 23:57:48 +00:00
Fix Layout/IndentationStyle
This commit is contained in:
committed by
Maikel Linke
parent
b04879604a
commit
12aa4f9970
@@ -397,12 +397,14 @@ module Admin
|
||||
let!(:another_distributor) { create(:distributor_enterprise, users: [distributor_owner]) }
|
||||
|
||||
it "doesn't update order cycle properties" do
|
||||
spree_put :bulk_update, format: :json, order_cycle_set: { collection_attributes: { '0' => {
|
||||
id: oc.id,
|
||||
name: "Updated Order Cycle",
|
||||
orders_open_at: Date.current - 21.days,
|
||||
orders_close_at: Date.current + 21.days,
|
||||
} } }
|
||||
spree_put :bulk_update,
|
||||
format: :json,
|
||||
order_cycle_set: { collection_attributes: { '0' => {
|
||||
id: oc.id,
|
||||
name: "Updated Order Cycle",
|
||||
orders_open_at: Date.current - 21.days,
|
||||
orders_close_at: Date.current + 21.days,
|
||||
} } }
|
||||
|
||||
oc.reload
|
||||
expect(oc.name).to_not eq "Updated Order Cycle"
|
||||
|
||||
Reference in New Issue
Block a user