Skip to content

Commit 3b13ee0

Browse files
committed
Remove default_context test from Condition
1 parent ef47709 commit 3b13ee0

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

test/unit/condition_unit_test.rb

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -145,21 +145,6 @@ def test_left_or_right_may_contain_operators
145145
assert_evaluates_true(VariableLookup.parse("one"), '==', VariableLookup.parse("another"))
146146
end
147147

148-
def test_default_context_is_deprecated
149-
if Gem::Version.new(Liquid::VERSION) >= Gem::Version.new('6.0.0')
150-
flunk("Condition#evaluate without a context argument is to be removed")
151-
end
152-
153-
_out, err = capture_io do
154-
expr = Parser.new('1 == 1').expression
155-
assert_equal(true, Condition.new(expr).evaluate)
156-
end
157-
158-
expected = "DEPRECATION WARNING: Condition#evaluate without a context argument is deprecated " \
159-
"and will be removed from Liquid 6.0.0."
160-
assert_includes(err.lines.map(&:strip), expected)
161-
end
162-
163148
def test_parse_expression
164149
environment = Environment.build
165150
parse_context = ParseContext.new(environment: environment)

0 commit comments

Comments
 (0)