File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
spec/bitbucket_rest_api/repos Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 3232 "/1.0/repositories/mock_user/mock_repo/pullrequests/mock_pull_request_id/participants" ,
3333 { } ,
3434 { }
35- )
35+ ) . and_return ( [ 'participant1' , 'participant2' , 'participant3' ] )
3636 end
3737
38- it 'makes a GET request for all participants belonging to the repo' do
39- subject . participants ( 'mock_user' , 'mock_repo' , 'mock_pull_request_id' )
38+ context 'without a block' do
39+ it 'makes a GET request for all participants belonging to the repo' do
40+ subject . participants ( 'mock_user' , 'mock_repo' , 'mock_pull_request_id' )
41+ end
42+ end
43+
44+ context 'with a block' do
45+ it 'makes a GET request for all participants belonging to the repo' do
46+ subject . participants ( 'mock_user' , 'mock_repo' , 'mock_pull_request_id' ) { |p | p }
47+ end
4048 end
4149 end
4250
You can’t perform that action at this time.
0 commit comments