On Feb 22, 7:28 am, Hemant Bhargava <[email protected]> wrote:
> Hello people,
>
> I am testing the emailers. I am following this
> tutorial:-http://izumi.plan99.net/manuals/testing_rails_applications-c17d65ba.html
>
There's a more update version of that at
http://guides.rubyonrails.org/testing.html#testing-your-mailers
> But i have got a problem. I have written the test case as like:-
>
> def test_check_abc
> @expected = 'MyMailer#signup'
> @expected.body = read_fixture('signup')
> @expected.date = Time.now
>
> assert_equal @expected.encoded,
> Emailer.create_invite('[email protected]', '[email protected]',
> @expected.date).encoded
> end
>
> Now i am getting problem as
> "NoMethodError: undefined method `leaverequest' for Emailer:Class"..
> What is it ..?
Probably an error in your Emailer class
Fred
--
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.