Fix new rubocop warnings
This commit is contained in:
parent
0a5069c1c1
commit
e71355c5bb
3 changed files with 2 additions and 5 deletions
|
@ -68,9 +68,6 @@ Rails/SkipsModelValidations:
|
||||||
- 'db/migrate/*.rb'
|
- 'db/migrate/*.rb'
|
||||||
- 'app/controllers/users_controller.rb'
|
- 'app/controllers/users_controller.rb'
|
||||||
|
|
||||||
Style/ArgumentsForwarding:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
Style/Documentation:
|
Style/Documentation:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,6 @@ require "test_helper"
|
||||||
|
|
||||||
class AssetHelperTest < ActionView::TestCase
|
class AssetHelperTest < ActionView::TestCase
|
||||||
def test_assets
|
def test_assets
|
||||||
assert assets("iD").is_a?(Hash)
|
assert_kind_of Hash, assets("iD")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -42,7 +42,7 @@ class I18nTest < ActiveSupport::TestCase
|
||||||
|
|
||||||
assert_includes value, :other, "#{key}.other plural key missing"
|
assert_includes value, :other, "#{key}.other plural key missing"
|
||||||
else
|
else
|
||||||
assert value.is_a?(String), "#{key} is not a string"
|
assert_kind_of String, value, "#{key} is not a string"
|
||||||
|
|
||||||
value.scan(/%\{(\w+)\}/) do
|
value.scan(/%\{(\w+)\}/) do
|
||||||
assert_includes variables, Regexp.last_match(1), "#{key} uses unknown interpolation variable #{Regexp.last_match(1)}"
|
assert_includes variables, Regexp.last_match(1), "#{key} uses unknown interpolation variable #{Regexp.last_match(1)}"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue