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 9762153 commit 801e026Copy full SHA for 801e026
spec/bitbucket_rest_api/issues/milestones_spec.rb
@@ -10,11 +10,19 @@
10
'/1.0/repositories/mock_username/mock_repo/issues/milestones',
11
{},
12
{}
13
- )
+ ).and_return(['milsetone1', 'milestone2', 'milestone3'])
14
+ end
15
+
16
+ context 'without a block' do
17
+ it 'makes a GET request for the milestones belonging to the given repo' do
18
+ subject.list('mock_username', 'mock_repo')
19
20
end
21
- it 'makes a GET request for the milestones 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') { |milestone| milestone }
25
26
27
28
0 commit comments