diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-11-26 08:16:15 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-11-26 08:16:15 +0000 |
commit | 62823442d369705290807fa2a5191a1a67d6ee09 (patch) | |
tree | f50e09ed18bbb7fdef85f0fe21d8d18d0a8202b9 /test | |
parent | bac3ac738a5cad495eb5862bad4e58cca02c8c6d (diff) | |
download | redmine-62823442d369705290807fa2a5191a1a67d6ee09.tar.gz redmine-62823442d369705290807fa2a5191a1a67d6ee09.zip |
Replaces project jump select with custom dropdown (#23310).
git-svn-id: http://svn.redmine.org/redmine/trunk@15994 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/projects_controller_test.rb | 6 | ||||
-rw-r--r-- | test/functional/welcome_controller_test.rb | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index fc261d277..01c68308f 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -52,6 +52,12 @@ class ProjectsControllerTest < Redmine::ControllerTest assert_select 'feed>entry', :count => Project.visible(User.current).count end + def test_index_js + xhr :get, :index, :format => 'js', :q => 'coo' + assert_response :success + assert_equal 'text/javascript', response.content_type + end + test "#index by non-admin user with view_time_entries permission should show overall spent time link" do @request.session[:user_id] = 3 get :index diff --git a/test/functional/welcome_controller_test.rb b/test/functional/welcome_controller_test.rb index 004fb674a..11d23d632 100644 --- a/test/functional/welcome_controller_test.rb +++ b/test/functional/welcome_controller_test.rb @@ -138,8 +138,8 @@ class WelcomeControllerTest < Redmine::ControllerTest @request.session[:user_id] = 2 get :index - assert_select "#header select" do - assert_select "option", :text => 'Foo & Bar' + assert_select "#header #project-jump" do + assert_select "a", :text => 'Foo & Bar' end end |