mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Rename update_attributes to update #rails4
This commit is contained in:
@@ -212,7 +212,7 @@ module Api
|
||||
before { allow(controller).to receive(:spree_current_user) { order.distributor.owner } }
|
||||
|
||||
it "can view an order not in a standard state" do
|
||||
order.update_attributes(completed_at: nil, state: 'shipped')
|
||||
order.update(completed_at: nil, state: 'shipped')
|
||||
get :show, id: order.number
|
||||
expect_order
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user