summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn McCrae <john.mccrae@progress.com>2022-04-06 13:14:39 -0700
committerJohn McCrae <john.mccrae@progress.com>2022-04-06 13:14:39 -0700
commit8d495f6a851b4fa15aee0b5fc83163963b58d47e (patch)
tree467bdd0b95a5a8b4b2d394383142c4db32421904
parent239de3b6a645b68e03b0d5cc4a5bbf9f589033f9 (diff)
downloadohai-8d495f6a851b4fa15aee0b5fc83163963b58d47e.tar.gz
Updating for Ruby 3.1
Signed-off-by: John McCrae <john.mccrae@progress.com>
-rw-r--r--spec/unit/mixin/shell_out_spec.rb1
-rw-r--r--spec/unit/plugins/azure_spec.rb6
2 files changed, 5 insertions, 2 deletions
diff --git a/spec/unit/mixin/shell_out_spec.rb b/spec/unit/mixin/shell_out_spec.rb
index a754bdc1..d696546e 100644
--- a/spec/unit/mixin/shell_out_spec.rb
+++ b/spec/unit/mixin/shell_out_spec.rb
@@ -17,7 +17,6 @@
#
require "spec_helper"
-require "pry"
describe Ohai::Mixin::ShellOut, "shell_out" do
let(:cmd) { "sparkle-dream --version" }
diff --git a/spec/unit/plugins/azure_spec.rb b/spec/unit/plugins/azure_spec.rb
index 0d9353d8..f1950f46 100644
--- a/spec/unit/plugins/azure_spec.rb
+++ b/spec/unit/plugins/azure_spec.rb
@@ -17,7 +17,11 @@
#
require "spec_helper"
-require "win32/registry" unless defined?(Win32::Registry)
+begin
+ require "win32/registry" unless defined?(Win32::Registry)
+rescue LoadError => e
+ puts "Skipping missing rake dep: #{e}"
+end
describe Ohai::System, "plugin azure" do
let(:plugin) { get_plugin("azure") }