Defect #6657
closed
Test "test_index_atom" fails because the expected application title is set to "Redmine"
Added by Daniela Jüppner over 14 years ago.
Updated over 14 years ago.
Description
In projects_controller_test.rb
The expected application title should not be set fixed to "Redmine".
Your code:
In Test method "test_index_atom"
assert_select 'feed>title', :text => 'Redmine: Latest projects'
None failing test code:
assert_select 'feed>title', :text => Setting.app_title + ': Latest projects'
What changes have you made that cause this error to happen? The test is supposed to test that the string is built correctly, i.e. that the title is "Redmine: Latest projects", anything else would not test the functionality of the method but would then test "1+1=1+1", i.e. "let's build the string the same way on both sides and see if they are equal".
The tests are supposed to be run on an empty test DB (in fact IIRC it gets reset for every test run) and on non-modified "immutable" config files, like the config/settings.yml
or the locale files.
- Status changed from New to Resolved
I'm sorry, I didn't know that the tests presume non-modified "immutable" config files. Especially as this test was the only one which fails when using a modified config file.
Sorry for the inconvenience!
- Status changed from Resolved to Closed
No problem. As I said, the conf/settings.yml
is considered immutable and only defines defaults for redmine. If you have a single install, you should make changes to the settings in the web UI.
Also available in: Atom
PDF