Adds a few tests.

git-svn-id: http://svn.redmine.org/redmine/trunk@16940 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2017-07-31 16:44:06 +00:00
parent 5ae0eda632
commit 09e55e3e3a
4 changed files with 94 additions and 0 deletions

View File

@@ -64,6 +64,16 @@ class ProjectsControllerTest < Redmine::ControllerTest
assert_equal 'text/javascript', response.content_type
end
def test_autocomplete_js_with_blank_search_term
get :autocomplete, :params => {
:format => 'js',
:q => ''
},
:xhr => true
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