From d58c2177fc8a0e09bdd67bfa618ea85a870d54a3 Mon Sep 17 00:00:00 2001 From: Codex Night Worker Date: Fri, 20 Nov 2026 00:42:07 +0900 Subject: [PATCH] WIP: unverified Codex job issue-279-zx1ujxvr --- backend/spec/requests/posts_spec.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/backend/spec/requests/posts_spec.rb b/backend/spec/requests/posts_spec.rb index 0428552..907e981 100644 --- a/backend/spec/requests/posts_spec.rb +++ b/backend/spec/requests/posts_spec.rb @@ -519,7 +519,10 @@ RSpec.describe 'Posts API', type: :request do [:title, :url].each do |field| context "when #{field} contains wildcards" do let!(:search_posts) do - ['needle%25end', 'needleX25end', 'needle_end', 'needleXend', 'needleABend', 'needle%25_end'].map.with_index do |value, index| + values = [ + 'needle%25end', 'needleX25end', 'needle_end', + 'needleXend', 'needleABend', 'needle%25_end'] + values.map.with_index do |value, index| Post.create!(uploaded_user: user, title: field == :title ? "prefix #{value} suffix" : 'url search post', url: field == :url ? "https://example.com/prefix-#{value}-suffix" : @@ -528,10 +531,13 @@ RSpec.describe 'Posts API', type: :request do end { + '%' => [0, 5], + '_' => [2, 5], 'needle%25end' => [0], 'needle_end' => [2], 'needle*end' => [0, 1, 2, 3, 4, 5], 'needle?end' => [2, 3], + 'needle??end' => [4], 'needle%*end' => [0, 5], 'needle_?nd' => [2], 'needle%25_end' => [5],