Hi guys,

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.save

or

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"

thanxs!

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to