spec/spec_helper.rb in ohai-8.2.0 vs spec/spec_helper.rb in ohai-8.3.0.rc.0
- old
+ new
@@ -30,9 +30,13 @@
def get_plugin(plugin, ohai = Ohai::System.new, path = PLUGIN_PATH)
loader = Ohai::Loader.new(ohai)
loader.load_plugin(File.join(path, "#{plugin}.rb"))
end
+def convert_windows_output(stdout)
+ 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
expect(@plugin[attribute]).to eq(value)
end