Merge pull request #472 from Shopify/fix-leaky-test

Fix test leaking error_mode, fix equality check for VariableLookup
This commit is contained in:
Justin Li
2014-10-23 10:12:41 -04:00
2 changed files with 6 additions and 8 deletions

View File

@@ -72,7 +72,7 @@ module Liquid
protected
def state
[@name, @lookup, @command_flags]
[@name, @lookups, @command_flags]
end
end
end

View File

@@ -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