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["adresseemail"]= adresseemail
    @body[:url]  = "http://192.168.1.58:3002/login/activate/#{code}";
    @from              ='[email protected]'
    @sent_on         =  Time.now
  end

end

Regards

Salil
-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to