From 002371920d6f9acedaf987f273bb138a95353ffd Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Fri, 15 Mar 2024 10:38:05 +0100 Subject: Fixed search for tags with spaces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We should not split the body mindlessly, but we have to be more careful about it. Moreover, this commit also polishes the order for tags inside of comments. Signed-off-by: Miquel Sabaté Solà --- test/system/comments_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/system') diff --git a/test/system/comments_test.rb b/test/system/comments_test.rb index 33a1398..eb53412 100644 --- a/test/system/comments_test.rb +++ b/test/system/comments_test.rb @@ -31,7 +31,7 @@ class CommentsTest < ApplicationSystemTestCase click_on I18n.t('helpers.submit.create') assert_text 'a new comment' - assert_text "#{I18n.t('tags.title')}: #{tags(:tag1).name}, #{tags(:tag2).name}" + assert_text "#{I18n.t('tags.title')}: #{tags(:tag2).name}, #{tags(:tag1).name}" assert_equal page.current_path, thing_path(things(:thing1)) end @@ -82,7 +82,7 @@ class CommentsTest < ApplicationSystemTestCase click_on I18n.t('helpers.submit.create') assert_text 'a new comment' - assert_text "#{I18n.t('tags.title')}: #{tags(:tag1).name}, #{tags(:tag2).name}" + assert_text "#{I18n.t('tags.title')}: #{tags(:tag2).name}, #{tags(:tag1).name}" assert_equal page.current_path, edit_thing_path(things(:thing1)) end -- cgit v1.2.3