mirror of
https://github.com/Shopify/liquid.git
synced 2026-10-02 16:45:12 -07:00
Fix test leaking error_mode, fix equality check for VariableLookup
This commit is contained in:
@@ -72,7 +72,7 @@ module Liquid
|
|||||||
protected
|
protected
|
||||||
|
|
||||||
def state
|
def state
|
||||||
[@name, @lookup, @command_flags]
|
[@name, @lookups, @command_flags]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -23,12 +23,10 @@ class ContextTest < Minitest::Test
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_has_key_will_not_add_an_error_for_missing_keys
|
def test_has_key_will_not_add_an_error_for_missing_keys
|
||||||
Template.error_mode = :strict
|
with_error_mode :strict do
|
||||||
|
|
||||||
context = Context.new
|
context = Context.new
|
||||||
|
|
||||||
context.has_key?('unknown')
|
context.has_key?('unknown')
|
||||||
|
|
||||||
assert_empty context.errors
|
assert_empty context.errors
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user