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 ea61e3b commit 9e5e17eCopy full SHA for 9e5e17e
spec/bitbucket_rest_api/issues/components_spec.rb
@@ -10,11 +10,19 @@
10
'/1.0/repositories/mock_username/mock_repo/issues/components',
11
{},
12
{}
13
- )
+ ).and_return(['component1', 'component2', 'component3'])
14
+ end
15
+
16
+ context 'without a block' do
17
+ it 'makes a GET request for the components belonging to the given repo' do
18
+ subject.list('mock_username', 'mock_repo')
19
20
end
21
- it 'makes a GET request for the components belonging to the given repo' do
- subject.list('mock_username', 'mock_repo')
22
+ context 'with a block' do
23
24
+ subject.list('mock_username', 'mock_repo') { |component| component }
25
26
27
28
0 commit comments