https://www.relishapp.com/rspec/rspec-core/docs/example-groups/shared-examples
On Sep 26, 2011, at 2:11 PM, Patrick J. Collins wrote:
> I've got many models that have this declared:
> has_many :notifications, :as => :notifiable, :dependent => :destroy
>
>
> ... And so I have many model spec
I've got many models that have this declared:
has_many :notifications, :as => :notifiable, :dependent => :destroy
... And so I have many model specs such as:
describe Reply do
it "should eliminate any associated notification records when destroyed" do
reply = create_reply
re