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 a15a144 commit 0c16eddCopy full SHA for 0c16edd
spec/bitbucket_rest_api/issues/comments_spec.rb
@@ -10,11 +10,19 @@
10
'/1.0/repositories/mock_username/mock_repo/issues/mock_issue_id/comments/',
11
{},
12
{}
13
- )
+ ).and_return(['comment1', 'comment2', 'comment3'])
14
+ end
15
+
16
+ context 'without a block' do
17
+ it 'should make a GET request for the given issue' do
18
+ comments.list('mock_username', 'mock_repo', 'mock_issue_id')
19
20
end
21
- it 'should make a GET request for the given issue' do
- comments.list('mock_username', 'mock_repo', 'mock_issue_id')
22
+ context 'with a block' do
23
24
+ comments.list('mock_username', 'mock_repo', 'mock_issue_id') { |comment| comment }
25
26
27
28
0 commit comments