WIP: unverified Codex job issue-279-zx1ujxvr

このコミットが含まれているのは:
Codex Night Worker
2026-11-20 00:42:07 +09:00
コミット d58c2177fc
+7 -1
ファイルの表示
@@ -519,7 +519,10 @@ RSpec.describe 'Posts API', type: :request do
[:title, :url].each do |field| [:title, :url].each do |field|
context "when #{field} contains wildcards" do context "when #{field} contains wildcards" do
let!(:search_posts) 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, Post.create!(uploaded_user: user,
title: field == :title ? "prefix #{value} suffix" : 'url search post', title: field == :title ? "prefix #{value} suffix" : 'url search post',
url: field == :url ? "https://example.com/prefix-#{value}-suffix" : url: field == :url ? "https://example.com/prefix-#{value}-suffix" :
@@ -528,10 +531,13 @@ RSpec.describe 'Posts API', type: :request do
end end
{ {
'%' => [0, 5],
'_' => [2, 5],
'needle%25end' => [0], 'needle%25end' => [0],
'needle_end' => [2], 'needle_end' => [2],
'needle*end' => [0, 1, 2, 3, 4, 5], 'needle*end' => [0, 1, 2, 3, 4, 5],
'needle?end' => [2, 3], 'needle?end' => [2, 3],
'needle??end' => [4],
'needle%*end' => [0, 5], 'needle%*end' => [0, 5],
'needle_?nd' => [2], 'needle_?nd' => [2],
'needle%25_end' => [5], 'needle%25_end' => [5],