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

2009-04-14 Thread Salil Gaikwad
> http://github.com/bmabey/email-spec/blob/cdf3eeda4d28ef8b35bbce8af9ca7c493528332d/examples/rails_root/spec/models/user_mailer_spec.rb > > -Ben I try following and it works. i don't know how but it pass the test gives me 100% coverage and also i receive a test email. describe ApplicationHelpe

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

2009-04-13 Thread Ben Mabey
David Chelimsky wrote: On Mon, Apr 13, 2009 at 12:06 PM, Salil Gaikwad wrote: how to write a spec for an actionmailer method. Check out http://github.com/bmabey/email-spec/ Cheers, David Specifically, look at this example for an idea on how to use it with RSpec: http://github.c

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

2009-04-13 Thread David Chelimsky
On Mon, Apr 13, 2009 at 12:06 PM, Salil Gaikwad 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,c

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

2009-04-13 Thread Salil Gaikwad
how to write a spec for an actionmailer method. 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["adressee