How can i add a translation test to my specs ? Something like :
flash[:error].should == I18n.translate 'error.discovered'
this does not work of course. How to make it work ?
I want to make sure that i get a certain error back.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In my code, a Rails 3 project, using RSpec 2, that is exactly the line I write:
So I am not sure why you say it is not possible?