Skip to content

Commit

Permalink
Per review, fix a some minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rioug committed Nov 12, 2024
1 parent 552ae65 commit 92daf74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/controllers/checkout_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def confirm_order

# Redeem VINE voucher
vine_voucher_redeemer = Vine::VoucherRedeemerService.new(order: @order)
if vine_voucher_redeemer.redeem == false
unless vine_voucher_redeemer.redeem
# rubocop:disable Rails/DeprecatedActiveModelErrorsMethods
flash[:error] = if vine_voucher_redeemer.errors.keys.include?(:redeeming_failed)
vine_voucher_redeemer.errors[:redeeming_failed]
Expand Down
2 changes: 1 addition & 1 deletion spec/requests/spree/admin/payments_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
end
end

context "when a getway error happens" do
context "when a gateway error happens" do
let(:payment_method) do
create(:stripe_sca_payment_method, distributors: [order.distributor])
end
Expand Down

0 comments on commit 92daf74

Please sign in to comment.