diff options
author | dheerajd-msys <dheeraj.dubey@msystechnologies.com> | 2018-09-04 15:25:29 +0530 |
---|---|---|
committer | dheerajd-msys <dheeraj.dubey@msystechnologies.com> | 2018-09-25 11:36:10 +0530 |
commit | 15544c17fe9ccea0408ddf4d652b1678ebcdd592 (patch) | |
tree | 244f2c9abd03af1569bd3498618f66eb56738972 /spec/functional | |
parent | bf03eadf0ed4533932d026a1aaa2cced7b77d743 (diff) | |
download | chef-15544c17fe9ccea0408ddf4d652b1678ebcdd592.tar.gz |
add suse rspec testing
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
Diffstat (limited to 'spec/functional')
-rw-r--r-- | spec/functional/resource/zypper_package_spec.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/functional/resource/zypper_package_spec.rb b/spec/functional/resource/zypper_package_spec.rb index 16fc4d205c..c95c3575ca 100644 --- a/spec/functional/resource/zypper_package_spec.rb +++ b/spec/functional/resource/zypper_package_spec.rb @@ -20,9 +20,7 @@ require "spec_helper" require "functional/resource/base" require "chef/mixin/shell_out" -# run this test only for following platforms. -exclude_test = !(%w{suse}.include?(ohai[:platform_family]) && !File.exist?("/usr/bin/zypper")) -describe Chef::Resource::ZypperPackage, :requires_root, external: exclude_test do +describe Chef::Resource::ZypperPackage, :requires_root, :suse_only do include Chef::Mixin::ShellOut # NOTE: every single test here needs to explicitly call preinstall. @@ -97,7 +95,7 @@ describe Chef::Resource::ZypperPackage, :requires_root, external: exclude_test d end end - context "with versions or globs in the name" do + context "with versions" do it "works with a version" do zypper_package.package_name("chef_rpm") zypper_package.version("1.10") |