We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8556d02 commit ad28bd7Copy full SHA for ad28bd7
spec/bitbucket_rest_api/repos/pull_request_spec.rb
@@ -9,11 +9,19 @@
9
'/2.0/repositories/mock_user/mock_repo/pullrequests',
10
{},
11
{}
12
- )
+ ).and_return(['pr1', 'pr2', 'pr3'])
13
+ end
14
+
15
+ context 'without a block' do
16
+ it 'makes a GET request for all pull requests belonging to the repo' do
17
+ subject.list('mock_user', 'mock_repo')
18
19
end
20
- it 'makes a GET request for all pull requests belonging to the repo' do
- subject.list('mock_user', 'mock_repo')
21
+ context 'with a block' do
22
23
+ subject.list('mock_user', 'mock_repo') { |pr| pr }
24
25
26
27
0 commit comments