Skip to content

Commit

Permalink
Removes negative expect
Browse files Browse the repository at this point in the history
Removes unused error message
  • Loading branch information
filipefurtad0 committed May 13, 2024
1 parent 62fefd5 commit a1e2d3a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions spec/controllers/checkout_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -330,9 +330,6 @@
commit: "Next - Order Summary"
}
end
let(:error_message) {
'You must implement payment_source_class method for this gateway.'
}

context "with a cash/check payment method" do
let!(:payment_method_id) { payment_method.id }
Expand All @@ -354,8 +351,7 @@
let!(:payment_method_id) { stripe_payment_method.id }

it "updates and redirects to summary step" do
expect { put(:update, params:) }.not_to raise_error(RuntimeError)

put(:update, params:)
expect(response.status).to eq 422
expect(flash[:error]).to match "Saving failed, please update the highlighted fields."
expect(order.reload.state).to eq "payment"
Expand Down

0 comments on commit a1e2d3a

Please sign in to comment.