mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03:00
rubocop autocorrect Style/MethodCallWithArgsParentheses
This commit is contained in:
@@ -28,7 +28,7 @@ class I18nUnitTest < Minitest::Test
|
||||
# end
|
||||
|
||||
def test_raises_unknown_translation
|
||||
assert_raises I18n::TranslationError do
|
||||
assert_raises(I18n::TranslationError) do
|
||||
@i18n.translate("doesnt_exist")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -108,7 +108,7 @@ class VariableUnitTest < Minitest::Test
|
||||
assert_equal(VariableLookup.new('foo-bar'), create_variable('foo-bar').name)
|
||||
assert_equal(VariableLookup.new('foo-bar-2'), create_variable('foo-bar-2').name)
|
||||
|
||||
with_error_mode :strict do
|
||||
with_error_mode(:strict) do
|
||||
assert_raises(Liquid::SyntaxError) { create_variable('foo - bar') }
|
||||
assert_raises(Liquid::SyntaxError) { create_variable('-foo') }
|
||||
assert_raises(Liquid::SyntaxError) { create_variable('2foo') }
|
||||
|
||||
Reference in New Issue
Block a user