Sha256: 5ab71dc300895699b86b72ebd9ebf1875a55e82d3d6a3198cec4131912da134a

Contents?: true

Size: 563 Bytes

Versions: 2

Compression:

Stored size: 563 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
      workspace.should_receive(:remote_commit=).with(workspace.lookup(revision))
      command.execute!
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dandelion-0.4.9 spec/dandelion/command/init_spec.rb
dandelion-0.4.8 spec/dandelion/command/init_spec.rb