spec/spec_helper.rb in ohai-8.10.0 vs spec/spec_helper.rb in ohai-8.11.1
- old
+ new
@@ -1,18 +1,18 @@
-require 'rspec'
-require 'rspec/collection_matchers'
+require "rspec"
+require "rspec/collection_matchers"
# require 'pry-debugger'
# require 'pry-stack_explorer'
$:.unshift(File.expand_path("../..", __FILE__))
-$:.unshift(File.dirname(__FILE__) + '/../lib')
+$:.unshift(File.dirname(__FILE__) + "/../lib")
-require 'spec/support/platform_helpers'
-require 'spec/support/integration_helper'
-require 'wmi-lite'
-require 'ohai'
+require "spec/support/platform_helpers"
+require "spec/support/integration_helper"
+require "wmi-lite"
+require "ohai"
Ohai.config[:log_level] = :error
PLUGIN_PATH = File.expand_path("../../lib/ohai/plugins", __FILE__)
SPEC_PLUGIN_PATH = File.expand_path("../data/plugins", __FILE__)
@@ -110,11 +110,11 @@
config.filter_run_excluding :windows_only => true unless windows?
config.filter_run_excluding :unix_only => true unless unix?
config.filter_run_excluding :ruby_18_only => true unless ruby_18?
config.filter_run_excluding :ruby_19_only => true unless ruby_19?
- config.filter_run_excluding :requires_root => true unless ENV['USER'] == 'root'
- config.filter_run_excluding :requires_unprivileged_user => true if ENV['USER'] == 'root'
+ config.filter_run_excluding :requires_root => true unless ENV["USER"] == "root"
+ config.filter_run_excluding :requires_unprivileged_user => true if ENV["USER"] == "root"
config.run_all_when_everything_filtered = true
config.before :each do
# TODO: Change to Ohai.config once Ohai::Config is deprecated fully. Needs