From 77e4f33c7237a968596be83ac1f08112c810eec3 Mon Sep 17 00:00:00 2001 From: Marcos Tapajos Date: Tue, 13 Sep 2011 18:09:33 -0300 Subject: [PATCH] Using sync_origin instead of sync_github --- lib/kumade/deployer.rb | 4 ++-- spec/kumade/deployer_spec.rb | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/kumade/deployer.rb b/lib/kumade/deployer.rb index 2a231cc..00ec99d 100644 --- a/lib/kumade/deployer.rb +++ b/lib/kumade/deployer.rb @@ -28,14 +28,14 @@ def deploy def pre_deploy ensure_clean_git package_assets - sync_github + sync_origin end def package_assets packager.run end - def sync_github + def sync_origin git.push(@branch) end diff --git a/spec/kumade/deployer_spec.rb b/spec/kumade/deployer_spec.rb index aca5570..b016e7d 100644 --- a/spec/kumade/deployer_spec.rb +++ b/spec/kumade/deployer_spec.rb @@ -40,17 +40,17 @@ end end -describe Kumade::Deployer, "#sync_github" do +describe Kumade::Deployer, "#sync_origin" do let(:new_branch) { 'new-branch' } before do `git checkout -b #{new_branch}` end - it "pushes the current branch to github" do + it "pushes the current branch to origin" do subject.git.expects(:push).with(new_branch) - subject.sync_github + subject.sync_origin end end