Sha256: 1ef54293c227d9c7e7b5cd481646cd967bfc95338c1724a19a15a0818e960d0a

Contents?: true

Size: 446 Bytes

Versions: 18

Compression:

Stored size: 446 Bytes

Contents

require 'spec_helper'

describe PushBranch do

  let(:command) { PushBranch.new(['remote_branch']) }
  before do
    command.stub(:current_branch).and_return('test-br')
  end
  subject { command }

  its(:cmd) do
    should match /git push --set-upstream origin #{command.current_branch}/
  end

  describe "command-line command" do
    subject { `bin/git-push-branch --debug` }
    it { should match /git push --set-upstream origin/ }
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
git-utils-2.4.0 spec/commands/push_branch_spec.rb
git-utils-2.3.0 spec/commands/push_branch_spec.rb
git-utils-2.2.1 spec/commands/push_branch_spec.rb
git-utils-2.2.0 spec/commands/push_branch_spec.rb
git-utils-2.1.0 spec/commands/push_branch_spec.rb
git-utils-2.0.0 spec/commands/push_branch_spec.rb
git-utils-1.0.0 spec/commands/push_branch_spec.rb
git-utils-0.7.1 spec/commands/push_branch_spec.rb
git-utils-0.7.0 spec/commands/push_branch_spec.rb
git-utils-0.6.5 spec/commands/push_branch_spec.rb
git-utils-0.6.4 spec/commands/push_branch_spec.rb
git-utils-0.6.3 spec/commands/push_branch_spec.rb
git-utils-0.6.2 spec/commands/push_branch_spec.rb
git-utils-0.6.1 spec/commands/push_branch_spec.rb
git-utils-0.6.0 spec/commands/push_branch_spec.rb
git-utils-0.5.10 spec/commands/push_branch_spec.rb
git-utils-0.5.9 spec/commands/push_branch_spec.rb
git-utils-0.5.8 spec/commands/push_branch_spec.rb