diff options
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/my_controller_test.rb | 8 | ||||
-rw-r--r-- | test/functional/projects_controller_test.rb | 10 |
2 files changed, 18 insertions, 0 deletions
diff --git a/test/functional/my_controller_test.rb b/test/functional/my_controller_test.rb index 100a5e4a7..206bba4cf 100644 --- a/test/functional/my_controller_test.rb +++ b/test/functional/my_controller_test.rb @@ -229,6 +229,14 @@ class MyControllerTest < Redmine::ControllerTest assert_select 'select[name=?]', 'user[language]' end + def test_my_account_with_avatar_enabled_should_link_to_edit_avatar + with_settings :gravatar_enabled => '1' do + get :account + assert_response :success + assert_select 'a[href=?] img.gravatar', 'https://gravatar.com' + end + end + def test_my_account_should_not_show_language_select_with_force_default_language_for_loggedin with_settings :force_default_language_for_loggedin => '1' do get :account 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 |