Sha256: 83017403f36d4bb9ccfa1e67e17c97c6a404496fba7684d20b03d1b8643ba2c8

Contents?: true

Size: 567 Bytes

Versions: 11

Compression:

Stored size: 567 Bytes

Contents

require 'spec_helper'

describe Dandelion::Command::Init do
  let(:revision) { 'e289ff1e2729839759dbd6fe99b6e35880910c7c' }

  describe '#execute!' do
    let(:adapter) { Dandelion::Adapter::NoOpAdapter.new({}) }
    let(:workspace) { Dandelion::Workspace.new(test_repo, adapter) }
    let(:command) { described_class.new(workspace, {}, {}) }

    before { command.setup([revision]) }

    it 'sets remote revision to specified revision' do
      expect(workspace).to receive(:remote_commit=).with(workspace.lookup(revision))
      command.execute!
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dandelion-0.6.0 spec/dandelion/command/init_spec.rb
dandelion-0.5.4 spec/dandelion/command/init_spec.rb
dandelion-0.5.3 spec/dandelion/command/init_spec.rb
dandelion-0.5.2 spec/dandelion/command/init_spec.rb
dandelion-0.5.1 spec/dandelion/command/init_spec.rb
dandelion-0.5.0 spec/dandelion/command/init_spec.rb
dandelion-0.4.17 spec/dandelion/command/init_spec.rb
dandelion-0.4.16 spec/dandelion/command/init_spec.rb
dandelion-0.4.15 spec/dandelion/command/init_spec.rb
dandelion-0.4.14 spec/dandelion/command/init_spec.rb
dandelion-0.4.10 spec/dandelion/command/init_spec.rb