mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Correct Style/CaseEquality rubocop offense
This commit is contained in:
@@ -550,13 +550,6 @@ Style/ArrayIntersect:
|
||||
- 'lib/open_food_network/tag_rule_applicator.rb'
|
||||
- 'spec/support/matchers/select2_matchers.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# This cop supports safe autocorrection (--autocorrect).
|
||||
# Configuration parameters: AllowOnConstant, AllowOnSelfClass.
|
||||
Style/CaseEquality:
|
||||
Exclude:
|
||||
- 'spec/models/spree/payment_spec.rb'
|
||||
|
||||
# Offense count: 23
|
||||
# This cop supports unsafe autocorrection (--autocorrect-all).
|
||||
# Configuration parameters: EnforcedStyle.
|
||||
|
||||
@@ -868,7 +868,7 @@ RSpec.describe Spree::Payment do
|
||||
let(:payment) { build_stubbed(:payment) }
|
||||
|
||||
it "returns the parameter amount when given" do
|
||||
expect(payment.__send__(:calculate_refund_amount, 123)).to be === 123.0
|
||||
expect(payment.__send__(:calculate_refund_amount, 123)).to eq(123)
|
||||
end
|
||||
|
||||
it "refunds up to the value of the payment when the outstanding balance is larger" do
|
||||
|
||||
Reference in New Issue
Block a user