From effee1ed50017ce8698ea2d30addbcff0282fa6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20S=C3=B8gaard?= Date: Fri, 2 Apr 2021 20:15:13 +0200 Subject: [PATCH] Update tests --- test/integration/standard_filter_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/standard_filter_test.rb b/test/integration/standard_filter_test.rb index 89c56a97..44700a19 100644 --- a/test/integration/standard_filter_test.rb +++ b/test/integration/standard_filter_test.rb @@ -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