Running tests on ActionMailer

I have a very strange problem, I am trying to test my mailer and as
far as I can see the fixture mail is exactly the same as the
generated.
Any ideas

The first is the expected and the second is the result:

<“Date: Fri, 16 May 2008 12:55:23 +0200\r\nFrom: @\r\nTo:
@\r\nSubject: =?iso-8859-1?Q?Investeringsans=f6kan?=\r
\nContent-Type: text/plain; charset=ISO-8859-1\r\n\r\n
Investeringsans
\366kan
\n\n
********************************************\n
\nPlacering\nFHV 8:D 006\n\nMotivering\nTESTDATA TESTDATA TESTDATA
TESTDATA TESTDATA\nTESTDATA!\n\nBelopp\n8000\n\nBest\344llare
\nMats L.\n\nInvesteringen avser\nTESTDATA TESTDATA TESTDATA
TESTDATA TESTDATA\nTESTDATA TESTDATA TESTDATA TESTDATA TESTDATA
\nTESTDATA TESTDATA!\n\nProduktinfo\n\n
\n**************************************************”>
<“Date: Fri, 16 May 2008 12:55:23 +0200\r\nFrom: @\r\nTo:
@\r\nSubject: =?ISO-8859-1?Q?Investeringsans=f6kan?=\r
\nContent-Type: text/plain; charset=ISO-8859-1\r\n\r\n
Investeringsans
\366kan
\n\n
********************************************\n
\nPlacering\nFHV 8:D 006\n\nMotivering\nTESTDATA TESTDATA TESTDATA
TESTDATA TESTDATA\nTESTDATA!\n\nBelopp\n8000\n\nBest\344llare
\nMats L.\n\nInvesteringen avser\nTESTDATA TESTDATA TESTDATA
TESTDATA TESTDATA\nTESTDATA TESTDATA TESTDATA TESTDATA TESTDATA
\nTESTDATA TESTDATA!\n\nProduktinfo\n\n
\n**************************************************”>

I removed the email addresses so that is not the issue!

On 16 May 2008, at 12:08, matlin wrote:

I have a very strange problem, I am trying to test my mailer and as
far as I can see the fixture mail is exactly the same as the
generated.
Any ideas

No it’s not. expected has
Subject: =?iso-8859-1
but the actual has
Subject: =?ISO-8859-1

Fred

Ah, crap, you know how you stare and stare at something and just can’t
see it when it’s right there …

Thanks!
/Mats

On May 16, 1:25 pm, Frederick C. [email protected]

The test passed, I have been staring at the output for two days!
Blind as a bat I am!

Thanks again
/Mats

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