spec/spec_helper.rb in ohai-8.4.0 vs spec/spec_helper.rb in ohai-8.5.0
- old
+ new
@@ -31,11 +31,11 @@
loader = Ohai::Loader.new(ohai)
loader.load_plugin(File.join(path, "#{plugin}.rb"))
end
def convert_windows_output(stdout)
- stdout.gsub("\n", "\r\n")
+ stdout.gsub("\n", "\r\n")
end
def it_should_check_from(plugin, attribute, from, value)
it "should set the #{attribute} to the value from '#{from}'" do
@plugin.run
@@ -88,9 +88,13 @@
end
end
end
RSpec.configure do |config|
+
+ # Not worth addressing warnings in Ohai until upstream ones in ffi-yajl are
+ # fixed.
+ # config.warnings = true
config.raise_errors_for_deprecations!
# `expect` should be preferred for new tests or when refactoring old tests,
# but we're not going to do a "big bang" change at this time.