From 8d495f6a851b4fa15aee0b5fc83163963b58d47e Mon Sep 17 00:00:00 2001 From: John McCrae Date: Wed, 6 Apr 2022 13:14:39 -0700 Subject: Updating for Ruby 3.1 Signed-off-by: John McCrae --- spec/unit/mixin/shell_out_spec.rb | 1 - spec/unit/plugins/azure_spec.rb | 6 +++++- 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") } -- cgit v1.2.1