Skip to content

Commit 4aa27d1

Browse files
committed
Renaming get_commits to commits
1 parent 59d06c3 commit 4aa27d1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/bitbucket_rest_api/repos/pull_request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def update(user_name, repo_name, pull_request_id, params={})
6565
return response unless block_given?
6666
end
6767

68-
def get_commits(user_name, repo_name, pull_request_id, params={})
68+
def commits(user_name, repo_name, pull_request_id, params={})
6969
_update_user_repo_params(user_name, repo_name)
7070
_validate_user_repo_params(user, repo) unless user? && repo?
7171
normalize! params

spec/bitbucket_rest_api/repos/pull_request_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
end
127127
end
128128

129-
describe '.get_commits' do
129+
describe '.commits' do
130130
before do
131131
expect(subject).to receive(:request).with(
132132
:get,
@@ -136,11 +136,11 @@
136136
end
137137

138138
it 'makes a GET request for the commits' do
139-
subject.get_commits('mock_user', 'mock_repo', 'mock_id')
139+
subject.commits('mock_user', 'mock_repo', 'mock_id')
140140
end
141141
end
142142

143-
describe '.get_commits' do
143+
describe '.commits' do
144144
before do
145145
expect(subject).to receive(:request).with(
146146
:post,

0 commit comments

Comments
 (0)