Fix Lint/AmbiguousRegexpLiteral
This commit is contained in:
parent
60071fb45f
commit
08efe9f7a8
|
@ -1,11 +1,6 @@
|
|||
# Remove these configuration records
|
||||
# one by one as the offenses are removed from the code base.
|
||||
|
||||
# Offense count: 3
|
||||
Lint/AmbiguousRegexpLiteral:
|
||||
Exclude:
|
||||
- 'test/unit/model_test.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# Cop supports --auto-correct.
|
||||
Lint/DeprecatedClassMethods:
|
||||
|
|
|
@ -255,7 +255,7 @@ class HasPaperTrailModelTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
should 'record the correct event' do
|
||||
assert_match /create/i, @widget.versions.first.event
|
||||
assert_match(/create/i, @widget.versions.first.event)
|
||||
end
|
||||
|
||||
should 'be live' do
|
||||
|
@ -311,7 +311,7 @@ class HasPaperTrailModelTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
should 'record the correct event' do
|
||||
assert_match /update/i, @widget.versions.last.event
|
||||
assert_match(/update/i, @widget.versions.last.event)
|
||||
end
|
||||
|
||||
should 'have versions that are not live' do
|
||||
|
@ -428,7 +428,7 @@ class HasPaperTrailModelTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
should 'record the correct event' do
|
||||
assert_match /destroy/i, PaperTrail::Version.last.event
|
||||
assert_match(/destroy/i, PaperTrail::Version.last.event)
|
||||
end
|
||||
|
||||
should 'have three previous versions' do
|
||||
|
|
Loading…
Reference in New Issue