Mailer unit test bug

how can it fail ,

Loaded suite test/unit/user_notifier_test
Started
F
Finished in 0.491143 seconds.

  1. Failure:
    test_get_new_contact_in_my_network(UserNotifierTest)
    [test/unit/user_notifier_test.rb:29]:

<“Date: Wed, 16 May 2007 05:30:04 +0200\r\n
From: [email protected]\r\n
To: [email protected]\r\n
Subject: test\r\nMime-Version: 1.0\r\n
Content-Type: text/plain; charset=utf-8\r\n\r\n
CLOSEUP - nice network\n\n
test-content\n\n
To join the network, click on the following link :\n\n
http://0.0.0.0:3000/account/activate/niceguy\n\n
and enjoy.”>.

expected but was

<“Date: Wed, 16 May 2007 05:30:04 +0200\r\n
From: [email protected]\r\n
To: [email protected]\r\n
Subject: test\r\nMime-Version: 1.0\r\n
Content-Type: text/plain; charset=utf-8\r\n\r\n
CLOSEUP - nice network\n\n
test-content\n\n
To join the network, click on the following link :\n\n
http://0.0.0.0:3000/account/activate/niceguy\n\n
and enjoy.”>.

1 tests, 1 assertions, 1 failures, 0 errors

Kad K. wrote:

how can it fail ,

Loaded suite test/unit/user_notifier_test
Started
F
Finished in 0.491143 seconds.

  1. Failure:
    test_get_new_contact_in_my_network(UserNotifierTest)
    [test/unit/user_notifier_test.rb:29]:

<“Date: Wed, 16 May 2007 05:30:04 +0200\r\n
From: [email protected]\r\n
To: [email protected]\r\n
Subject: test\r\nMime-Version: 1.0\r\n
Content-Type: text/plain; charset=utf-8\r\n\r\n
CLOSEUP - nice network\n\n
test-content\n\n
To join the network, click on the following link :\n\n
http://0.0.0.0:3000/account/activate/niceguy\n\n
and enjoy.”>.

expected but was

<“Date: Wed, 16 May 2007 05:30:04 +0200\r\n
From: [email protected]\r\n
To: [email protected]\r\n
Subject: test\r\nMime-Version: 1.0\r\n
Content-Type: text/plain; charset=utf-8\r\n\r\n
CLOSEUP - nice network\n\n
test-content\n\n
To join the network, click on the following link :\n\n
http://0.0.0.0:3000/account/activate/niceguy\n\n
and enjoy.”>.

1 tests, 1 assertions, 1 failures, 0 errors

It seems that only the from: is wrong… (tested all the other
statements) but why ?

Loaded suite test/unit/user_notifier_test
Started
F
Finished in 0.491175 seconds.

  1. Failure:
    test_get_new_contact_in_my_network(UserNotifierTest)
    [test/unit/user_notifier_test.rb:32]:
    <“[email protected]”> expected but was
    <“[email protected]”>.

1 tests, 2 assertions, 1 failures, 0 errors

should we add a ‘binocular plugin’ into Rails to look twice ? ;-))

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs