このコミットが含まれているのは:
2026-10-15 22:07:07 +09:00
コミット 47c40afcc1
10個のファイルの変更、102行の追加、51行の削除
+7 -4
ファイルの表示
@@ -52,12 +52,15 @@ RSpec.describe SharedResourceIdAllocator do
end
end
it "rejects explicit IDs below the reserved #{ space } position" do
it "allows explicit overlapping Id.s in #{ space }" do
first = resource(tables.first)
first.save!
first.class.where(id: first.id).delete_all
expect { resource(tables.last, id: first.id).save! }
.to raise_error(ActiveRecord::RecordNotUnique)
second = resource(tables.last, id: first.id)
second.save!
expect(second.id).to eq(first.id)
expect(first.reload.id).to eq(first.id)
end
it "preserves historical #{ space } overlaps without repairing them" do