Closed allenwyma closed 11 years ago
This does work for after_commit
it { should callback(:something).after(:commit) }
However, this gem is for testing that the callbacks are there, not to install the callbacks themselves, so it does not substitute after_commit or rails callbacks.
What about after_commit on: :create?
This is also possible:
it { should callback(:something).after(:commit).on(:create) }
Does this also work for after_commit? Would love to use this instead of after_commit gem.