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 eb25824 commit a15a144Copy full SHA for a15a144
spec/bitbucket_rest_api/repos/forks_spec.rb
@@ -10,11 +10,19 @@
10
'/2.0/repositories/mock_username/mock_repo/forks/',
11
{},
12
{}
13
- )
+ ).and_return(['fork1', 'fork2', 'fork3'])
14
+ end
15
+
16
+ context 'without a block' do
17
+ it 'sends a GET request for the forks of the given repo' do
18
+ forks.list('mock_username', 'mock_repo')
19
20
end
21
- it 'sends a GET request for the forks of the given repo' do
- forks.list('mock_username', 'mock_repo')
22
+ context 'with a block' do
23
24
+ forks.list('mock_username', 'mock_repo') { |fork| fork }
25
26
27
28
0 commit comments