summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorXabier de Zuazo <xabier@onddo.com>2014-07-09 09:58:59 +0200
committerXabier de Zuazo <xabier@onddo.com>2014-07-09 09:58:59 +0200
commite11d4ad82fc57d9d7b96b788a024aa1d263f625e (patch)
treee69e0b9e46591cd721cc794ba558a75a97cfc75e /spec/spec_helper.rb
parent24af166939aea7dc0f360c4221c75774077873cc (diff)
downloadchef-e11d4ad82fc57d9d7b96b788a024aa1d263f625e.tar.gz
[CHEF-5356-gcm] Use rspec filters instead of conditionals and add some alternative tests using stubs
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 09e7642d98..7c11957997 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -124,6 +124,9 @@ RSpec.configure do |config|
config.filter_run_excluding :requires_root_or_running_windows => true unless (root? || windows?)
config.filter_run_excluding :requires_unprivileged_user => true if root?
config.filter_run_excluding :uses_diff => true unless has_diff?
+ config.filter_run_excluding :ruby_gte_20_and_openssl_gte_101 => true unless (ruby_gte_20? && openssl_gte_101?)
+ config.filter_run_excluding :openssl_lt_101 => true unless openssl_lt_101?
+ config.filter_run_excluding :ruby_lt_20 => true unless ruby_lt_20?
running_platform_arch = `uname -m`.strip