Fix Lint/AmbiguousRegexpLiteral

This commit is contained in:
Jared Beck 2016-02-15 19:28:54 -05:00
parent 60071fb45f
commit 08efe9f7a8
2 changed files with 3 additions and 8 deletions

View File

@ -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:

View File

@ -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