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