diff options
author | Tim Smith <tsmith@chef.io> | 2021-06-05 17:04:53 -0700 |
---|---|---|
committer | John McCrae <john.mccrae@progress.com> | 2021-06-14 19:01:10 -0700 |
commit | d74a2315dcfb9438de2e638012a41303e5af345d (patch) | |
tree | 791498e1af360184facaf79e163ce1ad3690d8b4 | |
parent | de5b96e21a62da284ab5ec0712c08bf47e267aa2 (diff) | |
download | chef-d74a2315dcfb9438de2e638012a41303e5af345d.tar.gz |
More spec updates
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r-- | spec/unit/provider/zypper_repository_spec.rb | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/spec/unit/provider/zypper_repository_spec.rb b/spec/unit/provider/zypper_repository_spec.rb index 950022080a..2cf4ed99c8 100644 --- a/spec/unit/provider/zypper_repository_spec.rb +++ b/spec/unit/provider/zypper_repository_spec.rb @@ -107,13 +107,6 @@ describe Chef::Provider::ZypperRepository do end end - describe "#cookbook_name" do - it "returns 'test' when the cookbook property is set" do - new_resource.cookbook("test") - expect(provider.cookbook_name).to eq("test") - end - end - describe "#key_type" do it "returns :remote_file with an http URL" do expect(provider.key_type("https://www.chef.io/key")).to eq(:remote_file) @@ -167,10 +160,10 @@ describe Chef::Provider::ZypperRepository do end end - describe "#install_gpg_key" do - it "skips installing the key if a nil value for key is passed" do + describe "#install_gpg_keys" do + it "skips installing the key if an empty array for key URL is passed" do expect(logger).to receive(:debug) - provider.install_gpg_key(nil) + provider.install_gpg_keys([]) end end end |