summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2020-05-29 12:28:13 -0700
committerGitHub <noreply@github.com>2020-05-29 12:28:13 -0700
commitae85055e3e7d4e0430382839a3e9fc5addb42ee6 (patch)
tree5f2b6f2d8c49bbc77a6f1dcb40fc000ff42d3cb0
parent26591a65cff888f44ffde108d6d4917d4b943d07 (diff)
parent1c4a9373d17fb1597f1e0341210a089edc68c9ab (diff)
downloadchef-ae85055e3e7d4e0430382839a3e9fc5addb42ee6.tar.gz
Merge pull request #9935 from chef/avoid_spec_warnings
Avoid some constant warnings in specs
-rw-r--r--spec/unit/provider/apt_repository_spec.rb4
-rw-r--r--spec/unit/provider/zypper_repository_spec.rb4
2 files changed, 4 insertions, 4 deletions
diff --git a/spec/unit/provider/apt_repository_spec.rb b/spec/unit/provider/apt_repository_spec.rb
index 8717e7fbcc..df0058dd4f 100644
--- a/spec/unit/provider/apt_repository_spec.rb
+++ b/spec/unit/provider/apt_repository_spec.rb
@@ -38,7 +38,7 @@ EOF
# Output of the command:
# => gpg --with-fingerprint --with-colons [FILE]
-GPG_FINGER = <<~EOF.freeze
+APT_GPG_FINGER = <<~EOF.freeze
pub:-:1024:17:327574EE02A818DD:2009-04-22:::-:Cloudera Apt Repository:
fpr:::::::::F36A89E33CC1BD0F71079007327574EE02A818DD:
sub:-:2048:16:84080586D1CA74A1:2009-04-22::::
@@ -63,7 +63,7 @@ describe Chef::Provider::AptRepository do
end
let(:gpg_finger) do
- double("shell_out", stdout: GPG_FINGER, exitstatus: 0, error?: false)
+ double("shell_out", stdout: APT_GPG_FINGER, exitstatus: 0, error?: false)
end
let(:gpg_shell_out_success) do
diff --git a/spec/unit/provider/zypper_repository_spec.rb b/spec/unit/provider/zypper_repository_spec.rb
index 724a29dc2b..e01eb4c4ac 100644
--- a/spec/unit/provider/zypper_repository_spec.rb
+++ b/spec/unit/provider/zypper_repository_spec.rb
@@ -27,7 +27,7 @@ EOF
# Output of the command:
# => gpg --with-fingerprint [FILE]
-GPG_FINGER = <<~EOF.freeze
+ZYPPER_GPG_FINGER = <<~EOF.freeze
pub 2048R/3DBDC284 2011-08-19 [expires: 2024-06-14]
Key fingerprint = 573B FD6B 3D8F BC64 1079 A6AB ABF5 BD82 7BD9 BF62
uid nginx signing key <signing-key@nginx.com>
@@ -49,7 +49,7 @@ describe Chef::Provider::ZypperRepository do
end
let(:gpg_finger) do
- double("shell_out", stdout: GPG_FINGER, exitstatus: 0, error?: false)
+ double("shell_out", stdout: ZYPPER_GPG_FINGER, exitstatus: 0, error?: false)
end
it "responds to load_current_resource" do