mirror of
https://github.com/kemko/liquid.git
synced 2026-01-04 01:05:40 +03:00
Fix test leaking error_mode, fix equality check for VariableLookup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user