Sha256: 914464087934fad5f8347c021aa0c5e2ecb95bb12ef14d279d346752ae4c609b

Contents?: true

Size: 407 Bytes

Versions: 11

Compression:

Stored size: 407 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) { should match /git push origin #{command.current_branch}/ }

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
git-utils-0.5.7 spec/commands/push_branch_spec.rb
git-utils-0.5.6 spec/commands/push_branch_spec.rb
git-utils-0.5.5 spec/commands/push_branch_spec.rb
git-utils-0.5.4 spec/commands/push_branch_spec.rb
git-utils-0.5.3 spec/commands/push_branch_spec.rb
git-utils-0.5.2 spec/commands/push_branch_spec.rb
git-utils-0.5.1 spec/commands/push_branch_spec.rb
git-utils-0.5.0 spec/commands/push_branch_spec.rb
git-utils-0.1.2 spec/commands/push_branch_spec.rb
git-utils-0.1.1 spec/commands/push_branch_spec.rb
git-utils-0.1.0 spec/commands/push_branch_spec.rb