Sha256: a1f55eb45cebf45501dddf7abba698d0b21bd54f3439f042f5cf838fea46de39

Contents?: true

Size: 606 Bytes

Versions: 9

Compression:

Stored size: 606 Bytes

Contents

require 'spec_helper'

# Focus on rbenv::global proxy of rbenv
describe 'rbenv' do
  let(:facts) {{
    :osfamily => 'Debian',
  }}
  let(:file_path) { '/usr/lib/rbenv/version' }

  context 'when version is default, system' do
    it {
      should contain_file(file_path).with(
        :content => "system\n",
        :require => nil
      )
    }
  end

  context 'when version is 1.2.3' do
    let(:params) {{
      :global_version => '1.2.3',
    }}

    it {
      should contain_file(file_path).with(
        :content => "1.2.3\n",
        :require => 'Rbenv::Version[1.2.3]'
      )
    }
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
freighthop-0.2.1 modules/rbenv/spec/classes/rbenv__global_spec.rb
freighthop-0.2.0 modules/rbenv/spec/classes/rbenv__global_spec.rb
freighthop-0.1.0 modules/rbenv/spec/classes/rbenv__global_spec.rb
freighthop-0.0.6 modules/rbenv/spec/classes/rbenv__global_spec.rb
freighthop-0.0.5 modules/rbenv/spec/classes/rbenv__global_spec.rb
freighthop-0.0.4 modules/rbenv/spec/classes/rbenv__global_spec.rb
freighthop-0.0.3 modules/rbenv/spec/classes/rbenv__global_spec.rb
freighthop-0.0.2 modules/rbenv/spec/classes/rbenv__global_spec.rb
freighthop-0.0.1 modules/rbenv/spec/classes/rbenv__global_spec.rb