Cast input to string before spliting

This commit is contained in:
Jean Boussier
2014-08-07 14:01:44 -04:00
parent 4b22fc8d1b
commit df6b442816
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -106,6 +106,7 @@ class StandardFiltersTest < Minitest::Test
assert_equal ['A?Z'], @filters.split('A?Z', '~')
# Regexp works although Liquid does not support.
assert_equal ['A','Z'], @filters.split('AxZ', /x/)
assert_equal [], @filters.split(nil, ' ')
end
def test_escape