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

Commit

Permalink
Newer ChefSpec requires we use the actual declared_type, not the unde…
Browse files Browse the repository at this point in the history
…rlying class.
  • Loading branch information
coderanger committed Apr 30, 2017
1 parent d686da5 commit 46b68d8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/spec/system/resource_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ def install_package(name, version)
end

context 'on Ubuntu' do
it { is_expected.to install_apt_package('mylang, mylang-dev') }
it { is_expected.to install_package('mylang, mylang-dev') }
end # /context on Ubuntu

context 'on CentOS' do
let(:chefspec_options) { {platform: 'centos', version: '7.0'} }

it { is_expected.to install_yum_package('mylang') }
it { is_expected.to install_yum_package('mylang-devel') }
it { is_expected.to install_package('mylang') }
it { is_expected.to install_package('mylang-devel') }
end # /context on Ubuntu

context 'action :upgrade' do
Expand All @@ -79,7 +79,7 @@ def install_package(name, version)
end
end

it { is_expected.to upgrade_apt_package('mylang, mylang-dev') }
it { is_expected.to upgrade_package('mylang, mylang-dev') }
end # /context action :upgrade

context 'action :uninstall' do
Expand All @@ -95,7 +95,7 @@ def install_package(name, version)
default_attributes[:poise_current] = '2.0'
end

it { is_expected.to purge_apt_package('mylang, mylang-dev') }
it { is_expected.to purge_package('mylang, mylang-dev') }
end # /context action :uninstall

context 'with a matching version' do
Expand All @@ -107,7 +107,7 @@ def install_package(name, version)
end
end

it { is_expected.to install_apt_package('mylang, mylang-dev') }
it { is_expected.to install_package('mylang, mylang-dev') }
end # /context with a matching version

context 'with a non-matching version' do
Expand Down

0 comments on commit 46b68d8

Please sign in to comment.