このコミットが含まれているのは:
2026-10-15 20:20:00 +09:00
コミット 1e464107a8
36個のファイルの変更、566行の追加、2082行の削除
+6 -6
ファイルの表示
@@ -10,18 +10,18 @@ RSpec.describe 'Wiki conflict handling', type: :request do
it 'returns 409 when base_revision_id is stale' do
page =
seed_wiki_page(
seed_description(
tag_name: create(:tag, primary_name: 'wiki_conflict_request').tag_name('ja'),
body: 'first',
created_by_user: user,
message: 'init')
stale_id = page.current_revision.id
stale_id = current_description_version(page).id
Wiki::Commit.content!(
page:,
TagDescriptionOperation.update!(
tag: page.tag,
body: 'second',
created_user: user,
updated_by_user: user,
message: 'other edit',
base_revision_id: stale_id)
@@ -36,6 +36,6 @@ RSpec.describe 'Wiki conflict handling', type: :request do
page.reload
expect(page.body).to eq('second')
expect(page.current_revision.message).to eq('other edit')
expect(current_description_version(page)).to have_attributes(body: 'second', version_no: 2)
end
end