From a362b05f3abe38d5d4aed0160ff23f6a1af558e4 Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Fri, 19 Aug 2016 10:26:27 -0700 Subject: i was wondering where these got used... Signed-off-by: Lamont Granquist --- spec/unit/plugins/darwin/hardware_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/unit/plugins/darwin/hardware_spec.rb b/spec/unit/plugins/darwin/hardware_spec.rb index 65f3cd4f..de69f3ee 100644 --- a/spec/unit/plugins/darwin/hardware_spec.rb +++ b/spec/unit/plugins/darwin/hardware_spec.rb @@ -27,7 +27,7 @@ describe Ohai::System, "Darwin hardware plugin", :unix_only do allow(plugin).to receive(:shell_out).with( "system_profiler SPHardwareDataType -xml" ).and_return( - mock_shell_out(0, HardwareSystemProfilerOutput::Hardware, "") + mock_shell_out(0, HardwareSystemProfilerOutput::HARDWARE, "") ) allow(plugin).to receive(:shell_out).with( @@ -57,13 +57,13 @@ describe Ohai::System, "Darwin hardware plugin", :unix_only do allow(plugin).to receive(:shell_out).with( "system_profiler SPStorageDataType -xml" ).and_return( - mock_shell_out(0, HardwareSystemProfilerOutput::Storage, "") + mock_shell_out(0, HardwareSystemProfilerOutput::STORAGE, "") ) allow(plugin).to receive(:shell_out).with( "system_profiler SPPowerDataType -xml" ).and_return( - mock_shell_out(0, HardwareSystemProfilerOutput::Power, "") + mock_shell_out(0, HardwareSystemProfilerOutput::POWER, "") ) end -- cgit v1.2.1