[rspec-users] how to write a spec for an actionmailer method

David Chelimsky dchelimsky at gmail.com
Mon Apr 13 11:14:37 EDT 2009


On Mon, Apr 13, 2009 at 12:06 PM, Salil Gaikwad <lists at ruby-forum.com> wrote:
> how to write a spec for an actionmailer method.

Check out http://github.com/bmabey/email-spec/

Cheers,
David

>
> following is the method of action controller.
>
> class Notifier < ActionMailer::Base
>
>  def conta(username ,adresseemail,code)
>    @subject  = 'Admin Confirmation Mail'
>    @recipients  = adresseemail
>    @body["Username"]= username
>    @body["adresseemail"]= adresseemail
>    @body[:url]  = "http://192.168.1.58:3002/login/activate/#{code}"
>    @from              ='anubhaw at cipher-tech.com'
>    @sent_on         =  Time.now
>  end
>
> end
>
> Regards
>
> Salil
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users
>


More information about the rspec-users mailing list