ohw and i test by just creating a record (client in this case);

I have tried to do this with:

c = Client.new
c.name = 'bla'
c.save

or by doing:
c = Factory(:client)

or by doing:
c = Factory.create(:client)

also the other hooks in my model work perfectly:
after_save     :set_upload
after_destroy  :remove_upload

and in the app the after_commit gets called. So it isn't my code but the 
creation with rspec is the problem (something to do with mocking perhaps 
? )

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