diff options
author | Adam Edwards <adamed@opscode.com> | 2014-05-15 13:20:40 -0700 |
---|---|---|
committer | Adam Edwards <adamed@opscode.com> | 2014-05-15 13:20:40 -0700 |
commit | 28c2d33c159644c6464f411697518c4db8e267fd (patch) | |
tree | 0e72eadb96403d152b0e6556314659148157578c /spec/spec_helper.rb | |
parent | ac87ed20c4a87e49b14aa7b711cd043243a0317a (diff) | |
download | wmi-lite-28c2d33c159644c6464f411697518c4db8e267fd.tar.gz |
Functional tests, raise exceptions on query failures
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 11 |
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 |