Sha256: f83b181b431763af82d618f44e056ea7f73e784932d4da812d12c5b376dabb43

Contents?: true

Size: 461 Bytes

Versions: 18

Compression:

Stored size: 461 Bytes

Contents

require 'spec_helper'

describe Sync do

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

  its(:cmd) { should match /git checkout master/ }
  its(:cmd) { should match /git pull/ }
  its(:cmd) { should match /git checkout #{command.current_branch}/ }

  describe "command-line command" do
    subject { `bin/git-sync --debug` }
    it { should match /git checkout master/ }
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
git-utils-0.6.3 spec/commands/sync_spec.rb
git-utils-0.6.2 spec/commands/sync_spec.rb
git-utils-0.6.1 spec/commands/sync_spec.rb
git-utils-0.6.0 spec/commands/sync_spec.rb
git-utils-0.5.10 spec/commands/sync_spec.rb
git-utils-0.5.9 spec/commands/sync_spec.rb
git-utils-0.5.8 spec/commands/sync_spec.rb
git-utils-0.5.7 spec/commands/sync_spec.rb
git-utils-0.5.6 spec/commands/sync_spec.rb
git-utils-0.5.5 spec/commands/sync_spec.rb
git-utils-0.5.4 spec/commands/sync_spec.rb
git-utils-0.5.3 spec/commands/sync_spec.rb
git-utils-0.5.2 spec/commands/sync_spec.rb
git-utils-0.5.1 spec/commands/sync_spec.rb
git-utils-0.5.0 spec/commands/sync_spec.rb
git-utils-0.1.2 spec/commands/sync_spec.rb
git-utils-0.1.1 spec/commands/sync_spec.rb
git-utils-0.1.0 spec/commands/sync_spec.rb