WIP: unverified Codex job issue-279-zx1ujxvr
このコミットが含まれているのは:
@@ -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],
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする