Add new rubocop rules and fix the single offence

This commit is contained in:
Luis Ramos
2020-06-22 12:19:19 +01:00
parent dd9d9e3316
commit 57d925a7de
2 changed files with 7 additions and 1 deletions

View File

@@ -40,6 +40,12 @@ Layout/MultilineMethodCallIndentation:
Layout/LineLength:
Max: 100
Lint/RaiseException:
Enabled: true
Lint/StructNewOverride:
Enabled: true
## TEMPORARY/CONTESTED SETTINGS
#
# These are still to be decided upon, but recommended for inclusion by

View File

@@ -61,7 +61,7 @@ module Spree
it "restores both values when an exception is raised" do
expect do
tax_rate.send(:with_tax_included_in_price) { raise Exception, 'oops' }
tax_rate.send(:with_tax_included_in_price) { raise StandardError, 'oops' }
end.to raise_error 'oops'
expect(tax_rate.included_in_price).to be false