mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-19 10:52:48 -07:00
handle join on fixnum
This commit is contained in:
@@ -384,7 +384,7 @@ module Liquid
|
|||||||
end
|
end
|
||||||
|
|
||||||
def join(glue)
|
def join(glue)
|
||||||
to_a.join(glue)
|
to_a.join(glue.to_s)
|
||||||
end
|
end
|
||||||
|
|
||||||
def concat(args)
|
def concat(args)
|
||||||
|
|||||||
@@ -170,6 +170,7 @@ class StandardFiltersTest < Minitest::Test
|
|||||||
def test_join
|
def test_join
|
||||||
assert_equal '1 2 3 4', @filters.join([1, 2, 3, 4])
|
assert_equal '1 2 3 4', @filters.join([1, 2, 3, 4])
|
||||||
assert_equal '1 - 2 - 3 - 4', @filters.join([1, 2, 3, 4], ' - ')
|
assert_equal '1 - 2 - 3 - 4', @filters.join([1, 2, 3, 4], ' - ')
|
||||||
|
assert_equal '1121314', @filters.join([1, 2, 3, 4], 1)
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_sort
|
def test_sort
|
||||||
|
|||||||
Reference in New Issue
Block a user