Sha256: 4fbf0559435c4fcc730b4469a44fb7193436363c4622e10c8d7abe234b672500
Contents?: true
Size: 832 Bytes
Versions: 17
Compression:
Stored size: 832 Bytes
Contents
require 'spec_helper' require 'r10k/deployment/source' describe R10K::Deployment::Source do let(:name) { 'do_not_name_a_branch_this' } let(:remote) { 'git://github.com/adrienthebo/r10k-fixture-repo' } let(:basedir) { '/tmp' } describe 'environments', :integration => true do it 'uses the name as a prefix when told' do subject = described_class.new(name, remote, basedir, true) subject.fetch_remote() subject.environments.length.should > 0 subject.environments.first.dirname.should start_with name end it 'avoids using the name as a prefix when told' do subject = described_class.new(name, remote, basedir, false) subject.fetch_remote() subject.environments.length.should > 0 subject.environments.first.dirname.should_not start_with name end end end
Version data entries
17 entries across 17 versions & 1 rubygems