Skip to content

Commit 235df3d

Browse files
committed
Create team_spec and add test for .list
1 parent cab13cf commit 235df3d

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
require 'spec_helper'
2+
3+
describe BitBucket::Team do
4+
let(:team) { BitBucket::Team.new }
5+
6+
describe '.list' do
7+
before do
8+
expect(team).to receive(:request).with(
9+
:get,
10+
'/2.0/teams/?role=member',
11+
{},
12+
{}
13+
)
14+
end
15+
16+
it 'should send a GET request for the teams of which the user is a member' do
17+
team.list(:member)
18+
end
19+
end
20+
end

0 commit comments

Comments
 (0)