Sha256: 82a360259d0b2eef56c66a2dd36f61397d077502539cdb5df57ceec07391d5d0
Contents?: true
Size: 363 Bytes
Versions: 10
Compression:
Stored size: 363 Bytes
Contents
require 'rails_helper' shared_examples_for "Wupee::AttachedObject" do let(:model) { described_class } it "destroys notification on destroy" do attached_object = create model.name.underscore notif = create :notification, attached_object: attached_object expect { attached_object.destroy }.to change { Wupee::Notification.count }.by(-1) end end
Version data entries
10 entries across 10 versions & 1 rubygems