このコミットが含まれているのは:
@@ -20,7 +20,7 @@ RSpec.describe 'Wiki API', type: :request do
|
||||
end
|
||||
let!(:tag) do
|
||||
create(:tag,
|
||||
tag_name: tn,
|
||||
primary_tag_name: tn,
|
||||
category: :general,
|
||||
deprecated_at: Time.zone.local(2026, 6, 1))
|
||||
end
|
||||
@@ -275,7 +275,7 @@ RSpec.describe 'Wiki API', type: :request do
|
||||
|
||||
it 'wiki body だけを変更しても tag version は作成しない' do
|
||||
linked_tag_name = create(:tag_name, name: 'wiki_body_only_tag')
|
||||
linked_tag = create(:tag, tag_name: linked_tag_name, category: :general)
|
||||
linked_tag = create(:tag, primary_tag_name: linked_tag_name, category: :general)
|
||||
|
||||
TagVersionRecorder.record!(
|
||||
tag: linked_tag,
|
||||
@@ -535,7 +535,7 @@ RSpec.describe 'Wiki API', type: :request do
|
||||
|
||||
it 'wiki title を変更すると対応する tag の version を作成する' do
|
||||
linked_tag_name = create(:tag_name, name: 'wiki_linked_tag_for_version')
|
||||
linked_tag = create(:tag, tag_name: linked_tag_name, category: :general)
|
||||
linked_tag = create(:tag, primary_tag_name: linked_tag_name, category: :general)
|
||||
|
||||
linked_page =
|
||||
Wiki::Commit.create_content!(
|
||||
@@ -563,7 +563,8 @@ RSpec.describe 'Wiki API', type: :request do
|
||||
expect(response).to have_http_status(:ok)
|
||||
|
||||
linked_tag.reload
|
||||
expect(linked_tag.name).to eq('wiki_linked_tag_for_version_renamed')
|
||||
expect(primary_tag_name_for(linked_tag, 'ja').name)
|
||||
.to eq('wiki_linked_tag_for_version_renamed')
|
||||
|
||||
versions = linked_tag.tag_versions.order(:version_no)
|
||||
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする