summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDanilo Sousa <dsgoncalves@uoldiveo.com>2016-02-19 12:08:25 -0200
committerDanilo Sousa <dsgoncalves@uoldiveo.com>2016-02-19 12:08:58 -0200
commit66a0c3261611f737e5f36527da4ba0d13d70e092 (patch)
tree8a10d0ee76ad416a4a76e7362dbe62a8e26f756a /spec
parent695883a75783e19de70e60314fab49661c387a22 (diff)
fix 'GithubRepo#single_repo?' private method
Diffstat (limited to 'spec')
-rw-r--r--spec/githubrepo_spec.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/githubrepo_spec.rb b/spec/githubrepo_spec.rb
index 4674035..a5bbeca 100644
--- a/spec/githubrepo_spec.rb
+++ b/spec/githubrepo_spec.rb
@@ -132,12 +132,13 @@ describe GithubRepo do
repo.expects(:remotes).twice.returns(remotes)
remotes.expects(:[]).with('origin').returns(nil)
- remotes.expects(:create).with('origin', 'ggrroouupp#remote_repo').returns(remote)
+ remotes.expects(:create).with('origin', create_remote).returns(remote)
remote.expects(:url).returns('url')
remote.expects(:push).with(['refs/heads/master'], credentials: credentials).returns(true)
end
describe 'when there are several repositories' do
+ let(:create_remote) { 'ggrroouupp#remote_repo' }
let(:repository) { './ggrroouupp.git' }
let(:single_repo) { nil }
@@ -148,6 +149,7 @@ describe GithubRepo do
end
describe 'when is a single repository' do
+ let(:create_remote) { 'github_repo_hook#remote_repo' }
let(:repository) { 'foo.git' }
let(:single_repo) { true }