mirror of
https://github.com/kemko/liquid.git
synced 2026-01-06 02:05:41 +03:00
Rubocop fixes (#1182)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user