diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-20 16:00:18 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-20 16:00:18 +0100 |
| commit | 819f299d3bdc2485394120583b8a76a67b10b418 (patch) | |
| tree | fc7cedbcfd4f4b435649ebe35763f28ff9cc6520 /test/fixtures/searches.yml | |
| parent | ccf588845a6e595d1c9b2726a05eddd34bc92488 (diff) | |
| download | operum-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/fixtures/searches.yml')
| -rw-r--r-- | test/fixtures/searches.yml | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/test/fixtures/searches.yml b/test/fixtures/searches.yml index ffc7a28..81af270 100644 --- a/test/fixtures/searches.yml +++ b/test/fixtures/searches.yml @@ -1,4 +1,14 @@ search1: name: 'search1' - body: "tag:\"tag1\"" + body: 'tag:"tag1"' + user_id: <%= ActiveRecord::FixtureSet.identify(:user) %> + +search2: + name: 'search2' + body: 'tag:"tag2"' + user_id: <%= ActiveRecord::FixtureSet.identify(:user) %> + +search3: + name: 'search3' + body: 'tag:"unknown"' user_id: <%= ActiveRecord::FixtureSet.identify(:user) %> |
