test/integration/hash_ordering_test.rb in liquid-4.0.4 vs test/integration/hash_ordering_test.rb in liquid-5.0.0
- old
+ new
@@ -1,23 +1,25 @@
+# frozen_string_literal: true
+
require 'test_helper'
class HashOrderingTest < Minitest::Test
module MoneyFilter
def money(input)
- sprintf(' %d$ ', input)
+ format(' %d$ ', input)
end
end
module CanadianMoneyFilter
def money(input)
- sprintf(' %d$ CAD ', input)
+ format(' %d$ CAD ', input)
end
end
include Liquid
def test_global_register_order
with_global_filter(MoneyFilter, CanadianMoneyFilter) do
- assert_equal " 1000$ CAD ", Template.parse("{{1000 | money}}").render(nil, nil)
+ assert_equal(" 1000$ CAD ", Template.parse("{{1000 | money}}").render(nil, nil))
end
end
end