Skip to content

Commit

Permalink
Disable Rubocop warning
Browse files Browse the repository at this point in the history
  • Loading branch information
JDutil committed Oct 23, 2019
1 parent accdffb commit 5e8d7fd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/spec/controllers/spree/orders_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,9 @@

it "should render the edit view (on failure)" do
# email validation is only after address state
# rubocop:disable Rails/SkipsModelValidations
order.update_column(:state, "delivery")
# rubocop:enable Rails/SkipsModelValidations
put :update, params: { order: { email: "" } }
expect(response).to render_template :edit
end
Expand Down

0 comments on commit 5e8d7fd

Please sign in to comment.