Ruby on Rails
Friday, January 25, 2019
Not sure if I'm doing something wrong but here's the test:
it runs with:
-- fit "receives callback" do expect(subject).to receive(:absentee_reservation_email) subject.run_callbacks(:commit) endit runs with:
after_commit :absentee_reservation_email
and fails with:
after_create_commit :absentee_reservation_emailYou 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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
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.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment