I am trying to test a after_commit hook in my rails model with rspec.
However when doing something like:
c = Client.new
c.name = ‘hello’
c.domain = ‘test.com’
c = Factory(:client)
the callback doesn’t get triggered.
I use rails 3 with ruby 1.9.2
Does anybody know how to get the “after_commit” “triggered”