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