Skip to content

Commit

Permalink
adjust group management tests
Browse files Browse the repository at this point in the history
[Delivers #118986907]
  • Loading branch information
rubyconvict committed May 5, 2016
1 parent 16b15fc commit 9ae2c30
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions test/integration/imperator_api/v1/groups_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,6 @@ module V1
class GroupsTest < Redmine::ApiTest::Base
fixtures :users, :groups_users, :email_addresses

test 'GET /imperator_api/v1/groups.xml should require authentication' do
get '/imperator_api/v1/groups.xml'
assert_response 401
end

test 'GET /imperator_api/v1/groups.xml should return givable groups' do
get '/imperator_api/v1/groups.xml', {}, credentials('admin')
assert_response :success
assert_equal 'application/xml', response.content_type

assert_select 'groups' do
assert_select 'group', Group.givable.count
assert_select 'group' do
assert_select 'name', text: 'A Team'
assert_select 'id', text: '10'
end
end
end

test 'GET /imperator_api/v1/groups.xml?builtin=1 should return all groups' do
get '/imperator_api/v1/groups.xml?builtin=1', {}, credentials('admin')
assert_response :success
Expand Down

0 comments on commit 9ae2c30

Please sign in to comment.