diff --git a/test/spec/system/resource_spec.rb b/test/spec/system/resource_spec.rb index 0a87523..c27f20d 100644 --- a/test/spec/system/resource_spec.rb +++ b/test/spec/system/resource_spec.rb @@ -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 @@ -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 @@ -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 @@ -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