File tree Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Expand file tree Collapse file tree 1 file changed +17
-2
lines changed Original file line number Diff line number Diff line change 1414 end
1515
1616 context 'without a block' do
17- it 'should send a GET request for the teams of which the user is a member' do
17+ it 'sends a GET request for the teams of which the user is a member' do
1818 team . list ( :member )
1919 end
2020 end
2121
2222 context 'with a block' do
23- it 'should send a GET request for the teams of which the user is a member' do
23+ it 'sends a GET request for the teams of which the user is a member' do
2424 team . list ( :member ) { |team | team }
2525 end
2626 end
2727 end
28+
29+ describe '.profile' do
30+ before do
31+ expect ( team ) . to receive ( :request ) . with (
32+ :get ,
33+ '/2.0/teams/team_name' ,
34+ { } ,
35+ { }
36+ )
37+ end
38+
39+ it 'sends a GET request for the profile for the team' do
40+ team . profile ( 'team_name' )
41+ end
42+ end
2843end
You can’t perform that action at this time.
0 commit comments