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