Testing emailers

Hello people,

I am testing the emailers. I am following this tutorial:-
http://izumi.plan99.net/manuals/testing_rails_applications-c17d65ba.html

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 …?

On Feb 22, 7:28 am, Hemant B. [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

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

Now i am getting problem as
“NoMethodError: undefined method `leaverequest’ for Emailer:Class”…
What is it …?

Probably an error in your Emailer class

Hi Fred,

The thing was that we have to use deliver_ with the method name. So i
used and it delivers…