summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-09-23 00:17:11 +0000
committerGo MAEDA <maeda@farend.jp>2018-09-23 00:17:11 +0000
commit55ee0b8f7f5626197e5a3bd919b0cd56276a632e (patch)
treec24059d9f0b9623df4a45185e0a3d3ac675cb435 /test
parentd84837e6f650867f32ebd7ea30626ec593828248 (diff)
downloadredmine-55ee0b8f7f5626197e5a3bd919b0cd56276a632e.tar.gz
redmine-55ee0b8f7f5626197e5a3bd919b0cd56276a632e.zip
Add assignable, issues_visibility, time_entries_visibility and users_visibility to Roles API response (#28191).
Patch by Alex Stanev. git-svn-id: http://svn.redmine.org/redmine/trunk@17498 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/integration/api_test/roles_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/integration/api_test/roles_test.rb b/test/integration/api_test/roles_test.rb
index 222fc7003..0694faa64 100644
--- a/test/integration/api_test/roles_test.rb
+++ b/test/integration/api_test/roles_test.rb
@@ -53,6 +53,11 @@ class Redmine::ApiTest::RolesTest < Redmine::ApiTest::Base
assert_select 'role' do
assert_select 'name', :text => 'Manager'
+ assert_select 'assignable', :text => 'true'
+ assert_select 'issues_visibility', :text => 'all'
+ assert_select 'time_entries_visibility', :text => 'all'
+ assert_select 'users_visibility', :text => 'all'
+
assert_select 'role permissions[type=array]' do
assert_select 'permission', Role.find(1).permissions.size
assert_select 'permission', :text => 'view_issues'