[rspec-users] rails3/rspec2: how to write mailer tests?

nathanvda nathanvda at gmail.com
Fri Sep 3 02:56:42 EDT 2010

> Start with "script/rails generate rspec:mailer sms" - that will generate a stub for you and you can go from there.

I am sorry if that was not clear, but i am using rspec2 and rails.
I did use "rails g mailer SomethingMailer"
and that produced an empty test.

But when i did "rails g mailer SomethingMailer some_mail" i got a good
Feels stupid again :)

More information about the rspec-users mailing list