Not sure if I'm doing something wrong but here's the test:
fit "receives callback" do
expect(subject).to receive(:absentee_reservation_email)
subject.run_callbacks(:commit)
end
it runs with:
after_commit :absentee_reservation_email
and fails with:
after_create_commit :absentee_reservation_email
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/762bb949-922e-482e-82ec-de36b39dfc65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.