Skip to content

Commit b020377

Browse files
committed
Add test for .members to team_spec
1 parent 17f92de commit b020377

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

spec/bitbucket_rest_api/team_spec.rb

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,19 @@
4040
team.profile('team_name')
4141
end
4242
end
43+
44+
describe '.members' do
45+
before do
46+
expect(team).to receive(:request).with(
47+
:get,
48+
'/2.0/teams/team_name/members',
49+
{},
50+
{}
51+
)
52+
end
53+
54+
it 'sends a GET request for the members of the team' do
55+
team.members('team_name')
56+
end
57+
end
4358
end

0 commit comments

Comments
 (0)