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 9e5e17e commit 984fb27Copy full SHA for 984fb27
spec/bitbucket_rest_api/repos/keys_spec.rb
@@ -9,11 +9,19 @@
9
'/1.0/repositories/mock_username/mock_repo/deploy-keys/',
10
{},
11
{}
12
- )
+ ).and_return(['key1', 'key2', 'key3'])
13
+ end
14
+
15
+ context 'without a block' do
16
+ it 'should make a GET request for the deploy keys belonging to the given repo' do
17
+ deploy_keys.list('mock_username', 'mock_repo')
18
19
end
20
- it 'should make a GET request for the deploy keys belonging to the given repo' do
- deploy_keys.list('mock_username', 'mock_repo')
21
+ context 'with a block' do
22
23
+ deploy_keys.list('mock_username', 'mock_repo') { |key| key }
24
25
26
27
0 commit comments