summaryrefslogtreecommitdiffstats
path: root/test/functional/projects_controller_test.rb
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2022-01-22 10:11:13 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2022-01-22 10:11:13 +0000
commit4807beaebf192dca34ea5661df0de0acb33e2e11 (patch)
tree36478100ecd35fbdbb34f58c225cb74b01ed0b34 /test/functional/projects_controller_test.rb
parenta347d212b5e89c91e939015696ce099cb87527b7 (diff)
downloadredmine-4807beaebf192dca34ea5661df0de0acb33e2e11.tar.gz
redmine-4807beaebf192dca34ea5661df0de0acb33e2e11.zip
Explicitly specify text formatting in the tests (#35952).
Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@21386 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r--test/functional/projects_controller_test.rb40
1 files changed, 21 insertions, 19 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb
index 244187f76..837de343a 100644
--- a/test/functional/projects_controller_test.rb
+++ b/test/functional/projects_controller_test.rb
@@ -96,26 +96,28 @@ class ProjectsControllerTest < Redmine::ControllerTest
end
def test_index_as_list_should_format_column_value
- get :index, :params => {
- :c => ['name', 'status', 'short_description', 'homepage', 'parent_id', 'identifier', 'is_public', 'created_on', 'cf_3'],
- :display_type => 'list'
- }
- assert_response :success
+ with_settings :text_formatting => 'textile' do
+ get :index, :params => {
+ :c => ['name', 'status', 'short_description', 'homepage', 'parent_id', 'identifier', 'is_public', 'created_on', 'cf_3'],
+ :display_type => 'list'
+ }
+ assert_response :success
- project = Project.find(1)
- assert_select 'table.projects' do
- assert_select 'tr[id=?]', 'project-1' do
- assert_select 'td.name a[href=?]', '/projects/ecookbook', :text => 'eCookbook'
- assert_select 'td.status', :text => 'active'
- assert_select 'td.short_description', :text => 'Recipes management application'
- assert_select 'td.homepage a.external', :text => 'http://ecookbook.somenet.foo/'
- assert_select 'td.identifier', :text => 'ecookbook'
- assert_select 'td.is_public', :text => 'Yes'
- assert_select 'td.created_on', :text => format_time(project.created_on)
- assert_select 'td.cf_3.list', :text => 'Stable'
- end
- assert_select 'tr[id=?]', 'project-4' do
- assert_select 'td.parent_id a[href=?]', '/projects/ecookbook', :text => 'eCookbook'
+ project = Project.find(1)
+ assert_select 'table.projects' do
+ assert_select 'tr[id=?]', 'project-1' do
+ assert_select 'td.name a[href=?]', '/projects/ecookbook', :text => 'eCookbook'
+ assert_select 'td.status', :text => 'active'
+ assert_select 'td.short_description', :text => 'Recipes management application'
+ assert_select 'td.homepage a.external', :text => 'http://ecookbook.somenet.foo/'
+ assert_select 'td.identifier', :text => 'ecookbook'
+ assert_select 'td.is_public', :text => 'Yes'
+ assert_select 'td.created_on', :text => format_time(project.created_on)
+ assert_select 'td.cf_3.list', :text => 'Stable'
+ end
+ assert_select 'tr[id=?]', 'project-4' do
+ assert_select 'td.parent_id a[href=?]', '/projects/ecookbook', :text => 'eCookbook'
+ end
end
end
end