mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-16 17:30:43 -07:00
fix a few more rubocop offenses
This commit is contained in:
@@ -83,15 +83,15 @@ class ErrorHandlingTest < Minitest::Test
|
||||
|
||||
def test_with_line_numbers_adds_numbers_to_parser_errors
|
||||
err = assert_raises(SyntaxError) do
|
||||
template = Liquid::Template.parse(%q(
|
||||
Liquid::Template.parse(%q(
|
||||
foobar
|
||||
|
||||
{% "cat" | foobar %}
|
||||
|
||||
bla
|
||||
),
|
||||
),
|
||||
line_numbers: true
|
||||
)
|
||||
)
|
||||
end
|
||||
|
||||
assert_match /Liquid syntax error \(line 4\)/, err.message
|
||||
|
||||
@@ -453,7 +453,6 @@ class ContextUnitTest < Minitest::Test
|
||||
def test_use_empty_instead_of_any_in_interrupt_handling_to_avoid_lots_of_unnecessary_object_allocations
|
||||
mock_any = Spy.on_instance_method(Array, :any?)
|
||||
mock_empty = Spy.on_instance_method(Array, :empty?)
|
||||
mock_has_interrupt = Spy.on(@context, :has_interrupt?).and_call_through
|
||||
|
||||
@context.has_interrupt?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user