diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2024-06-04 20:04:45 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2024-06-04 20:04:45 +0000 |
commit | 38a8adb2a20c9c6ae57b0633037290c64a34b624 (patch) | |
tree | 3e3a7ca75019c0c8846dc2ac820e8b819ce30aad /test/functional/users_controller_test.rb | |
parent | c19176a5c48e33e6bcfe280736092154deb58181 (diff) | |
download | redmine-38a8adb2a20c9c6ae57b0633037290c64a34b624.tar.gz redmine-38a8adb2a20c9c6ae57b0633037290c64a34b624.zip |
Adds description field to custom queries (#9309).
Patch by Go MAEDA (@maeda).
git-svn-id: https://svn.redmine.org/redmine/trunk@22855 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/users_controller_test.rb')
-rw-r--r-- | test/functional/users_controller_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb index 4302f913a..5d6e6b754 100644 --- a/test/functional/users_controller_test.rb +++ b/test/functional/users_controller_test.rb @@ -189,6 +189,15 @@ class UsersControllerTest < Redmine::ControllerTest assert_select 'tr#user-1', 1 end + def test_index_with_query + query = UserQuery.create!(:name => 'My User Query', :description => 'Description for My User Query', :visibility => UserQuery::VISIBILITY_PUBLIC) + get :index, :params => { :query_id => query.id } + assert_response :success + + assert_select 'h2', :text => query.name + assert_select '#sidebar a.query.selected[title=?]', query.description, :text => query.name + end + def test_index_csv with_settings :default_language => 'en' do user = User.logged.status(1).first |