Normally when an en-GB.yml translation is missing, rails falls back to en.yml. But when using the submit helpers, if the en-GB translation is missing, rails knows how to create a fallback like 'Create {model_name}' without touching the en.yml file. This string might then be different from what the test expects, e.g. 'Add Comment'. So it's important to set the language headers, to avoid phantomjs from picking up your desktop preferences in this specific case. |
||
---|---|---|
.. | ||
diary_entry_test.rb | ||
issues_test.rb | ||
report_diary_comment_test.rb | ||
report_diary_entry_test.rb | ||
report_note_test.rb | ||
report_user_test.rb | ||
site_test.rb |