aboutsummaryrefslogtreecommitdiff
path: root/test/system/searches_test.rb
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2024-03-20 16:00:18 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2024-03-20 16:00:18 +0100
commit819f299d3bdc2485394120583b8a76a67b10b418 (patch)
treefc7cedbcfd4f4b435649ebe35763f28ff9cc6520 /test/system/searches_test.rb
parentccf588845a6e595d1c9b2726a05eddd34bc92488 (diff)
downloadoperum-819f299d3bdc2485394120583b8a76a67b10b418.tar.gz
operum-819f299d3bdc2485394120583b8a76a67b10b418.zip
tags: attempt to modify searches on tag rename
We don't want to break existing searches upon renaming a tag, since most of searches will be based on tag names. NOTE: if the UI of searches is improved, maybe the `tags:""` clause can contain tag ids instead of names, and hence we won't need all this dance afterwards. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'test/system/searches_test.rb')
-rw-r--r--test/system/searches_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/system/searches_test.rb b/test/system/searches_test.rb
index 309d51c..4920102 100644
--- a/test/system/searches_test.rb
+++ b/test/system/searches_test.rb
@@ -127,6 +127,6 @@ class SearchesTest < ApplicationSystemTestCase
accept_alert { click_on I18n.t('general.delete') }
assert_selector 'a', text: searches(:search1).name, count: 0
- assert_predicate Search, :none?
+ assert_equal searches.size - 1, Search.count
end
end