Rubocop fixes (#1182)

This commit is contained in:
Mike Angell
2019-10-07 17:06:47 +11:00
committed by GitHub
parent 1aa7d3d2ba
commit 5302f40342
42 changed files with 1066 additions and 1063 deletions

View File

@@ -16,7 +16,7 @@ class PartialCacheUnitTest < Minitest::Test
parse_context: Liquid::ParseContext.new
)
assert_equal 'my partial body', partial.render
assert_equal('my partial body', partial.render)
end
def test_reads_from_the_file_system_only_once_per_file
@@ -33,7 +33,7 @@ class PartialCacheUnitTest < Minitest::Test
)
end
assert_equal 1, file_system.file_read_count
assert_equal(1, file_system.file_read_count)
end
def test_cache_state_is_stored_per_context
@@ -66,7 +66,7 @@ class PartialCacheUnitTest < Minitest::Test
parse_context: parse_context
)
assert_equal 2, shared_file_system.file_read_count
assert_equal(2, shared_file_system.file_read_count)
end
def test_cache_is_not_broken_when_a_different_parse_context_is_used
@@ -88,6 +88,6 @@ class PartialCacheUnitTest < Minitest::Test
# Technically what we care about is that the file was parsed twice,
# but measuring file reads is an OK proxy for this.
assert_equal 1, file_system.file_read_count
assert_equal(1, file_system.file_read_count)
end
end