test/integration/security_test.rb in liquid-3.0.6 vs test/integration/security_test.rb in liquid-4.0.0.rc1

- old
+ new

@@ -9,35 +9,33 @@ class SecurityTest < Minitest::Test include Liquid def test_no_instance_eval text = %( {{ '1+1' | instance_eval }} ) - expected = %| 1+1 | + expected = %( 1+1 ) assert_equal expected, Template.parse(text).render!(@assigns) end def test_no_existing_instance_eval text = %( {{ '1+1' | __instance_eval__ }} ) - expected = %| 1+1 | + expected = %( 1+1 ) assert_equal expected, Template.parse(text).render!(@assigns) end - def test_no_instance_eval_after_mixing_in_new_filter text = %( {{ '1+1' | instance_eval }} ) - expected = %| 1+1 | + expected = %( 1+1 ) assert_equal expected, Template.parse(text).render!(@assigns) end - def test_no_instance_eval_later_in_chain text = %( {{ '1+1' | add_one | instance_eval }} ) - expected = %| 1+1 + 1 | + expected = %( 1+1 + 1 ) - assert_equal expected, Template.parse(text).render!(@assigns, :filters => SecurityFilter) + assert_equal expected, Template.parse(text).render!(@assigns, filters: SecurityFilter) end def test_does_not_add_filters_to_symbol_table current_symbols = Symbol.all_symbols