summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-06-11 07:26:23 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-06-11 07:26:23 +0000
commit79fcbc82dc9c8d9d7023823e6e44e56e4970ff9d (patch)
tree2ac1da6d0331cc3f75276ec2489cbc2948696461 /test
parent893c96a9909d0365a28c8cf4ac5fa7d4a3ec75e3 (diff)
downloadredmine-79fcbc82dc9c8d9d7023823e6e44e56e4970ff9d.tar.gz
redmine-79fcbc82dc9c8d9d7023823e6e44e56e4970ff9d.zip
Adds a setting for choosing the new object menu item style (#15880).
Set to use the new "+" drop-down by default, but let users revert to the "New issue" tab, or no menu item at all. git-svn-id: http://svn.redmine.org/redmine/trunk@15508 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/functional/issues_controller_test.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index dc50d1331..046efb856 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -1104,7 +1104,7 @@ class IssuesControllerTest < ActionController::TestCase
end
def test_index_should_not_include_new_issue_tab_when_disabled
- with_settings :new_project_issue_tab_enabled => '0' do
+ with_settings :new_item_menu_tab => '0' do
@request.session[:user_id] = 2
get :index, :project_id => 1
assert_select '#main-menu a.new-issue', 0
@@ -1112,7 +1112,7 @@ class IssuesControllerTest < ActionController::TestCase
end
def test_index_should_include_new_issue_tab_when_enabled
- with_settings :new_project_issue_tab_enabled => '1' do
+ with_settings :new_item_menu_tab => '1' do
@request.session[:user_id] = 2
get :index, :project_id => 1
assert_select '#main-menu a.new-issue[href="/projects/ecookbook/issues/new"]', :text => 'New issue'
@@ -1120,7 +1120,7 @@ class IssuesControllerTest < ActionController::TestCase
end
def test_new_should_have_new_issue_tab_as_current_menu_item
- with_settings :new_project_issue_tab_enabled => '1' do
+ with_settings :new_item_menu_tab => '1' do
@request.session[:user_id] = 2
get :new, :project_id => 1
assert_select '#main-menu a.new-issue.selected'
@@ -1128,7 +1128,7 @@ class IssuesControllerTest < ActionController::TestCase
end
def test_index_should_not_include_new_issue_tab_for_project_without_trackers
- with_settings :new_project_issue_tab_enabled => '1' do
+ with_settings :new_item_menu_tab => '1' do
Project.find(1).trackers.clear
@request.session[:user_id] = 2
@@ -1138,7 +1138,7 @@ class IssuesControllerTest < ActionController::TestCase
end
def test_index_should_not_include_new_issue_tab_for_users_with_copy_issues_permission_only
- with_settings :new_project_issue_tab_enabled => '1' do
+ with_settings :new_item_menu_tab => '1' do
role = Role.find(1)
role.remove_permission! :add_issues
role.add_permission! :copy_issues