Rename update_attributes to update #rails4

This commit is contained in:
Luis Ramos
2020-06-22 13:15:36 +01:00
parent 8a61257547
commit f848a89a00
62 changed files with 168 additions and 168 deletions

View File

@@ -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