Sha256: e255bb87ffb329fb98e1b4a3743ff83d4b0df47f91bb1af2e09bb97b6b881dc6

Contents?: true

Size: 577 Bytes

Versions: 11

Compression:

Stored size: 577 Bytes

Contents

require 'spec_helper'
require 'tasks/projects/add_task'
require 'fileutils'

describe Projects::AddTask do
  let(:repo_url) { 'git@github.com:account/repo' }

  subject { described_class.new('repo', 'account/repo') }

  describe '#task' do
    it 'clones the repo with proper arguments' do
      expect(subject).to receive(:clone_repo)
        .with(repo_url, 'repo')

      subject.task
    end
  end

  describe '#clone_repo', config: true do
    it 'clones the repo with Git' do
      Git.should_receive(:clone)

      subject.clone_repo(repo_url, 'repo')
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
anvil-core-0.4.2 spec/lib/tasks/projects/add_task_spec.rb
anvil-core-0.4.1 spec/lib/tasks/projects/add_task_spec.rb
anvil-core-0.4.0 spec/lib/tasks/projects/add_task_spec.rb
anvil-core-0.3.2 spec/lib/tasks/projects/add_task_spec.rb
anvil-core-0.3.1 spec/lib/tasks/projects/add_task_spec.rb
anvil-core-0.3.0 spec/lib/tasks/projects/add_task_spec.rb
anvil-core-0.2.0 spec/lib/tasks/projects/add_task_spec.rb
anvil-core-0.1.0 spec/lib/tasks/projects/add_task_spec.rb
anvil-core-0.0.1.pre.alpha.3 spec/lib/tasks/projects/add_task_spec.rb
anvil-core-0.0.1.pre.alpha.2 spec/lib/tasks/projects/add_task_spec.rb
anvil-core-0.0.1.alpha.1 spec/lib/tasks/projects/add_task_spec.rb