spec/models/permanent_id_spec.rb in ddr-models-2.9.2 vs spec/models/permanent_id_spec.rb in ddr-models-2.10.0.rc1

- old
+ new

@@ -9,13 +9,9 @@ allow(id).to receive(:save) { nil } allow(described_class.identifier_class).to receive(:mint) { id } allow(described_class.identifier_class).to receive(:find).with("foo") { id } allow(Ddr::Models).to receive(:auto_assign_permanent_id) { true } end - after do - obj.permanent_id = nil - obj.save! - end it "assigns a permanent id to the object" do obj.reload expect(obj.permanent_id).to eq("foo") expect(obj.permanent_url).to eq("https://idn.duke.edu/foo") end