Displaying 2 results from an estimated 2 matches for "message_spec".
2007 May 24
3
Annoying problem, stack error
...uot;spec/controllers/comments_controller_spec.rb"
"spec/controllers/posts_controller_spec.rb"
"spec/controllers/users_controller_spec.rb"
"spec/models/asset_spec.rb" "spec/models/category_spec.rb"
"spec/models/comment_spec.rb" "spec/models/message_spec.rb"
"spec/models/post_spec.rb" "spec/models/user_spec.rb"
"spec/models/vote_spec.rb" --options
"/Users/sparta/Projects/work/idastudios/ff/config/../spec/spec.opts"
failed
(See full trace by running task with --trace)
Anyone have an idea what the heck i...
2007 Dec 13
16
"Tricks" for testing after_create callback???
I''ve got a model Message, which needs to send an email using action
mailer after it''s first saved in the database.
I want to pass the model to the mailer which then uses methods on the
message model to render the email.
So the natural way to do this is in an after_create callback on the
Message model.
But I can''t see an easy way to test this. Here''s my spec