test/integration/document_test.rb in liquid-4.0.4 vs test/integration/document_test.rb in liquid-5.0.0
- old
+ new
@@ -1,19 +1,21 @@
+# frozen_string_literal: true
+
require 'test_helper'
class DocumentTest < Minitest::Test
include Liquid
def test_unexpected_outer_tag
exc = assert_raises(SyntaxError) do
Template.parse("{% else %}")
end
- assert_equal exc.message, "Liquid syntax error: Unexpected outer 'else' tag"
+ assert_equal(exc.message, "Liquid syntax error: Unexpected outer 'else' tag")
end
def test_unknown_tag
exc = assert_raises(SyntaxError) do
Template.parse("{% foo %}")
end
- assert_equal exc.message, "Liquid syntax error: Unknown tag 'foo'"
+ assert_equal(exc.message, "Liquid syntax error: Unknown tag 'foo'")
end
end