summaryrefslogtreecommitdiffstats
path: root/test/functional/projects_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-07-31 16:44:06 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-07-31 16:44:06 +0000
commit09e55e3e3ac6d5c397ba3439232fe8f945b76d04 (patch)
treecfbfb11c2d73336a3d14c43f7fb609dcc545cafd /test/functional/projects_controller_test.rb
parent5ae0eda632d18634472c7f72e60b098df09bf412 (diff)
downloadredmine-09e55e3e3ac6d5c397ba3439232fe8f945b76d04.tar.gz
redmine-09e55e3e3ac6d5c397ba3439232fe8f945b76d04.zip
Adds a few tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@16940 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r--test/functional/projects_controller_test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb
index 658efcc24..77480894a 100644
--- a/test/functional/projects_controller_test.rb
+++ b/test/functional/projects_controller_test.rb
@@ -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