diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-15 10:38:05 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-15 10:38:05 +0100 |
| commit | 002371920d6f9acedaf987f273bb138a95353ffd (patch) | |
| tree | 40a99ed7db2814504d056ee535460f2b0a301d21 /test/system/comments_test.rb | |
| parent | e46f849f1f8b3e2a002ac3b124331011a86f9ea3 (diff) | |
| download | operum-002371920d6f9acedaf987f273bb138a95353ffd.tar.gz operum-002371920d6f9acedaf987f273bb138a95353ffd.zip | |
Fixed search for tags with spaces
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à <msabate@suse.com>
Diffstat (limited to 'test/system/comments_test.rb')
| -rw-r--r-- | test/system/comments_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
