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