diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index b35c85e16a..fe342753d1 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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. diff --git a/spec/models/spree/payment_spec.rb b/spec/models/spree/payment_spec.rb index e22e064b60..1389d62d1a 100644 --- a/spec/models/spree/payment_spec.rb +++ b/spec/models/spree/payment_spec.rb @@ -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