summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb11
1 files changed, 9 insertions, 2 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index b773d8a..ee9e966 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -1,5 +1,12 @@
# $:.unshift File.expand_path('../../lib', __FILE__)
require 'rspec'
-require 'wmi-lite/wmi'
-require 'wmi-lite/wmi_instance'
+require 'wmi-lite'
+
+RSpec.configure do |config|
+ config.include(RSpec::Matchers)
+ config.treat_symbols_as_metadata_keys_with_true_values = true
+ config.filter_run :focus => true
+ config.filter_run_excluding :windows_only => true if ! (RUBY_PLATFORM =~ /mswin|mingw32|windows/)
+ config.run_all_when_everything_filtered = true
+end