fix (?) bug on travis

This commit is contained in:
benji 2015-09-07 14:39:45 +02:00
parent 084e542dd5
commit fee873126a

View file

@ -88,7 +88,7 @@ describe ProductsController, type: :controller do
context 'failed' do
it 'should not update attributes' do
old_attributes = @product.attributes
old_attributes = @product.reload.attributes
put :update, id: @product, product: attributes_for(:invalid_product)
expect(@product.reload.attributes).to eq(old_attributes)
end