spec/support/ohai_helpers.rb in omnibus-5.4.0 vs spec/support/ohai_helpers.rb in omnibus-5.5.0
- old
+ new
@@ -1,7 +1,7 @@
-require 'fauxhai'
-require 'omnibus/ohai'
+require "fauxhai"
+require "omnibus/ohai"
module Omnibus
module RSpec
module OhaiHelpers
#
@@ -11,11 +11,11 @@
ohai = Mash.from_hash(Fauxhai.mock(options, &block).data)
allow(Ohai).to receive(:ohai).and_return(ohai)
# If we asked for Windows, we should also specify that magical
# +File::ALT_SEPARATOR+ variable
- if options[:platform] && options[:platform] == 'windows'
- stub_const('File::ALT_SEPARATOR', '\\')
+ if options[:platform] && options[:platform] == "windows"
+ stub_const("File::ALT_SEPARATOR", '\\')
end
end
end
end
end