Rubocop fixes

This commit is contained in:
Mike Angell
2019-10-07 16:57:44 +11:00
parent 1aa7d3d2ba
commit c5ed5d3504
42 changed files with 1066 additions and 1063 deletions
+4 -4
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