Forum: Ruby on Rails functional test encoding issue

Posted by Kad Kerforn (kadoudal)
on 2012-11-22 17:22
(Received via mailing list)
I got an error in my functional test which is is fine ( the emails are
effectively different...) BUT my question is related to the encoding
informatin displayed ....

in my registration_controller_test.rb file , I have at the top
> # encoding: utf-8
, so the expected string is UTF-8
and I get ("US-ASCII"). from the controller ... does it means I have to
also insert
> # encoding: utf-8
at the top of the controller ?

Failure:
  <"john.doe@acme.com">("UTF-8") expected but was
  <"edgard.poe@acme.com">("US-ASCII").
Posted by Kad Kerforn (kadoudal)
on 2012-11-22 17:54
(Received via mailing list)
I think it's related to the confirmation email encoding .. as the 
assertion
is

assert_equal"edgard.poe@acme.com", sent_email.to[0]

sent_email.to[0] is still in ("US-ASCII") need to modify it

Le jeudi 22 novembre 2012 16:32:37 UTC+1, Erwin a crit :
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.