diff --git a/lib/kumade/deployer.rb b/lib/kumade/deployer.rb index 867f650..0ec198e 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 d25e4d2..cb6ced6 100644 --- a/spec/kumade/deployer_spec.rb +++ b/spec/kumade/deployer_spec.rb @@ -38,17 +38,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