mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-16 01:10:41 -07:00
Update tests
This commit is contained in:
@@ -512,12 +512,12 @@ class StandardFiltersTest < Minitest::Test
|
||||
def test_remove
|
||||
assert_equal(' ', @filters.remove("a a a a", 'a'))
|
||||
assert_equal(' ', @filters.remove("1 1 1 1", 1))
|
||||
assert_equal('a a a', @filters.remove_first("a a a a", 'a '))
|
||||
assert_equal('b a a', @filters.remove_first("a b a a", 'a '))
|
||||
assert_equal(' 1 1 1', @filters.remove_first("1 1 1 1", 1))
|
||||
assert_template_result('b a a', "{{ 'a b a a' | remove_first: 'a ' }}")
|
||||
assert_equal('a a b', @filters.remove_last("a a b a", ' a'))
|
||||
assert_equal('1 1 1 ', @filters.remove_last("1 1 1 1", 1))
|
||||
assert_template_result('a a a', "{{ 'a a a a' | remove_last: ' a' }}")
|
||||
assert_template_result('a a b', "{{ 'a a b a' | remove_last: ' a' }}")
|
||||
end
|
||||
|
||||
def test_pipes_in_string_arguments
|
||||
|
||||
Reference in New Issue
Block a user