Sha256: 3f5a0f5a4280ab2d2bf7e1c158764cb4370cef630df27b63b52cee401b8a5eb9

Contents?: true

Size: 452 Bytes

Versions: 11

Compression:

Stored size: 452 Bytes

Contents

require 'spec_helper'

describe Switch do

  let(:command) { Switch.new(['other-branch']) }
  before do
    command.stub(:current_branch).and_return('test-br')
    command.stub(:other_branch).and_return('other-branch')
  end
  subject { command }

  its(:cmd) { should match /git checkout #{command.other_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/switch_spec.rb
git-utils-0.5.6 spec/commands/switch_spec.rb
git-utils-0.5.5 spec/commands/switch_spec.rb
git-utils-0.5.4 spec/commands/switch_spec.rb
git-utils-0.5.3 spec/commands/switch_spec.rb
git-utils-0.5.2 spec/commands/switch_spec.rb
git-utils-0.5.1 spec/commands/switch_spec.rb
git-utils-0.5.0 spec/commands/switch_spec.rb
git-utils-0.1.2 spec/commands/switch_spec.rb
git-utils-0.1.1 spec/commands/switch_spec.rb
git-utils-0.1.0 spec/commands/switch_spec.rb