spec/spec_helper.rb in ohai-14.2.0 vs spec/spec_helper.rb in ohai-14.3.0
- old
+ new
@@ -103,15 +103,15 @@
end
config.mock_with :rspec do |c|
c.syntax = :expect
end
- config.filter_run :focus => true
+ config.filter_run focus: true
- config.filter_run_excluding :windows_only => true unless windows?
- config.filter_run_excluding :unix_only => true unless unix?
- 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 windows_only: true unless windows?
+ config.filter_run_excluding unix_only: true unless unix?
+ 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