Replaces project jump select with custom dropdown (#23310).

git-svn-id: http://svn.redmine.org/redmine/trunk@15994 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2016-11-26 08:16:15 +00:00
parent bac3ac738a
commit 62823442d3
9 changed files with 245 additions and 57 deletions

View File

@@ -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