summaryrefslogtreecommitdiff
path: root/spec/unit/provider/zypper_repository_spec.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2021-06-05 17:04:53 -0700
committerTim Smith <tsmith@chef.io>2021-06-05 17:04:53 -0700
commit72974e1f7c35dc48da6013ca9b64f766433460fd (patch)
treea9c8f43c7e754608b7e7b73a8903f2b4a0f507ab /spec/unit/provider/zypper_repository_spec.rb
parentfe0b2354a92f683e8b4077b4ab302a9e5a4c7a7e (diff)
downloadchef-72974e1f7c35dc48da6013ca9b64f766433460fd.tar.gz
More spec updates
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/unit/provider/zypper_repository_spec.rb')
-rw-r--r--spec/unit/provider/zypper_repository_spec.rb13
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