Skip to content
This repository has been archived by the owner on May 14, 2021. It is now read-only.

Commit

Permalink
Update fauxhai versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
coderanger committed Mar 2, 2018
1 parent 82f50d5 commit d8c2106
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions test/spec/scl/mixin_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def action_run
subject { provider(:poise_test).send(:find_scl_package, chef_run.node, version) }

context 'on CentOS 7 with no version' do
let(:chefspec_options) { {platform: 'centos', version: '7.0'} }
let(:chefspec_options) { {platform: 'centos', version: '7.3.1611'} }
it do
is_expected.to include({
version: '3.4.2',
Expand All @@ -232,7 +232,7 @@ def action_run

context 'on CentOS 7 with a version' do
let(:version) { '3.3' }
let(:chefspec_options) { {platform: 'centos', version: '7.0'} }
let(:chefspec_options) { {platform: 'centos', version: '7.3.1611'} }
it do
is_expected.to include({
version: '3.3.2',
Expand All @@ -243,7 +243,7 @@ def action_run
end # /context on CentOS 7 with a version

context 'on CentOS 6 with no version' do
let(:chefspec_options) { {platform: 'centos', version: '6.0'} }
let(:chefspec_options) { {platform: 'centos', version: '6.8'} }
it do
is_expected.to include({
version: '3.3.2',
Expand All @@ -255,7 +255,7 @@ def action_run

context 'on CentOS 6 with a version' do
let(:version) { '3.3' }
let(:chefspec_options) { {platform: 'centos', version: '6.0'} }
let(:chefspec_options) { {platform: 'centos', version: '6.8'} }
it do
is_expected.to include({
version: '3.3.2',
Expand All @@ -270,7 +270,7 @@ def action_run
include described_class
scl_package('3.4.2', 'rh-python34')
end
let(:chefspec_options) { {platform: 'centos', version: '7.0'} }
let(:chefspec_options) { {platform: 'centos', version: '7.3.1611'} }
it do
is_expected.to include({
version: '3.4.2',
Expand Down
2 changes: 1 addition & 1 deletion test/spec/scl/resource_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
describe PoiseLanguages::Scl::Resource do
step_into(:poise_languages_scl)
step_into(:ruby_block)
let(:chefspec_options) { {platform: 'centos', version: '7.0'} }
let(:chefspec_options) { {platform: 'centos', version: '7.3.1611'} }
let(:yum_cache) { double('yum_cache', reload: nil) }
before do
allow(Chef::Provider::Package::Yum::YumCache).to receive(:instance).and_return(yum_cache)
Expand Down
6 changes: 3 additions & 3 deletions test/spec/system/mixin_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def action_run
end # /describe #system_package_candidates

describe '#system_package_name' do
let(:chefspec_options) { {platform: 'debian', version: '7.0'} }
let(:chefspec_options) { {platform: 'debian', version: '7.3.1611'} }
let(:version) { '' }
let(:test_provider) { provider(:poise_test).new(nil, chef_run.run_context) }
provider(:poise_test) do
Expand Down Expand Up @@ -166,7 +166,7 @@ def system_package_candidates(version)
end # /context with version 2.6

context 'on an unknown platform' do
let(:chefspec_options) { {platform: 'centos', version: '7.0'} }
let(:chefspec_options) { {platform: 'centos', version: '7.3.1611'} }
it { is_expected.to eq 'python' }
end # /context on an unknown platform

Expand Down Expand Up @@ -196,7 +196,7 @@ def system_package_candidates(version)
subject { provider(:poise_test).provides_auto?(chef_run.node, nil) }

context 'on CentOS' do
let(:chefspec_options) { {platform: 'centos', version: '7.0'} }
let(:chefspec_options) { {platform: 'centos', version: '7.3.1611'} }
it { is_expected.to be true }
end # /context on CentOS

Expand Down
2 changes: 1 addition & 1 deletion test/spec/system/resource_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@
end # /context on Ubuntu

context 'on CentOS' do
let(:chefspec_options) { {platform: 'centos', version: '7.0'} }
let(:chefspec_options) { {platform: 'centos', version: '7.3.1611'} }
before do
yum_cache = double('YumCache')
allow(yum_cache).to receive(:yum_binary=)
Expand Down

0 comments on commit d8c2106

Please sign in to comment.