Sha256: 836c1e90e08c6fecb4498bf43fd64d6625654fbb78dff2521191d066d2aac109
Contents?: true
Size: 621 Bytes
Versions: 10
Compression:
Stored size: 621 Bytes
Contents
RSpec.shared_examples "a DDR model" do it_behaves_like "a describable object" it_behaves_like "a governable object" it_behaves_like "a licensable object" it_behaves_like "an access controllable object" it_behaves_like "an object that has properties" it_behaves_like "an object that has a display title" describe "events" do describe "on deletion with #destroy" do before { subject.save(validate: false) } it "should create a deletion event" do expect { subject.destroy }.to change { Ddr::Events::DeletionEvent.for_object(subject).count }.from(0).to(1) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems