From 4aa27d19afb36dc2f0a951124ed415e593ba81b7 Mon Sep 17 00:00:00 2001 From: Dan Garland Date: Tue, 29 Mar 2016 11:49:15 +0100 Subject: [PATCH] Renaming get_commits to commits --- lib/bitbucket_rest_api/repos/pull_request.rb | 2 +- spec/bitbucket_rest_api/repos/pull_request_spec.rb | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/bitbucket_rest_api/repos/pull_request.rb b/lib/bitbucket_rest_api/repos/pull_request.rb index 7a58e63..48fef84 100644 --- a/lib/bitbucket_rest_api/repos/pull_request.rb +++ b/lib/bitbucket_rest_api/repos/pull_request.rb @@ -65,7 +65,7 @@ def update(user_name, repo_name, pull_request_id, params={}) return response unless block_given? end - def get_commits(user_name, repo_name, pull_request_id, params={}) + def commits(user_name, repo_name, pull_request_id, params={}) _update_user_repo_params(user_name, repo_name) _validate_user_repo_params(user, repo) unless user? && repo? normalize! params diff --git a/spec/bitbucket_rest_api/repos/pull_request_spec.rb b/spec/bitbucket_rest_api/repos/pull_request_spec.rb index 62971b0..cad1bd3 100644 --- a/spec/bitbucket_rest_api/repos/pull_request_spec.rb +++ b/spec/bitbucket_rest_api/repos/pull_request_spec.rb @@ -126,7 +126,7 @@ end end - describe '.get_commits' do + describe '.commits' do before do expect(subject).to receive(:request).with( :get, @@ -136,11 +136,11 @@ end it 'makes a GET request for the commits' do - subject.get_commits('mock_user', 'mock_repo', 'mock_id') + subject.commits('mock_user', 'mock_repo', 'mock_id') end end - describe '.get_commits' do + describe '.commits' do before do expect(subject).to receive(:request).with( :post,