[rspec-users] Testing Email thriugh Rspec
lists at ruby-forum.com
Fri Jan 22 04:01:39 EST 2010
I got the Notifier model included in the user spec like require
By adding this i can now access Notifier.deliver_signup_notification
method(i checked up in the code and it user deliver before that)
Now i can access the method.
But another problem is i am getting error as "undefined method `email'
for 327378:Fixnum" in app/models/notifier.rb:5:in `signup_notification'
i.e. on this line "setup_email( user.email )"
This means that it is getting the user object.But i have added user in
How can i add this user to point it to notifier object?
Posted via http://www.ruby-forum.com/.
More information about the rspec-users