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

Version Path
r10k-1.4.2 spec/unit/deployment/source_spec.rb
r10k-1.4.1 spec/unit/deployment/source_spec.rb
r10k-1.4.0 spec/unit/deployment/source_spec.rb
r10k-1.3.5 spec/unit/deployment/source_spec.rb
r10k-1.3.4 spec/unit/deployment/source_spec.rb
r10k-1.2.4 spec/unit/deployment/source_spec.rb
r10k-1.3.3 spec/unit/deployment/source_spec.rb
r10k-1.3.2 spec/unit/deployment/source_spec.rb
r10k-1.2.3 spec/unit/deployment/source_spec.rb
r10k-1.3.1 spec/unit/deployment/source_spec.rb
r10k-1.2.2 spec/unit/deployment/source_spec.rb
r10k-1.3.0 spec/unit/deployment/source_spec.rb
r10k-1.3.0rc1 spec/unit/deployment/source_spec.rb
r10k-1.2.1 spec/unit/deployment/source_spec.rb
r10k-1.2.0 spec/unit/deployment/source_spec.rb
r10k-1.2.0rc2 spec/unit/deployment/source_spec.rb
r10k-1.2.0rc1 spec/unit/deployment/source_spec.rb