summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaire McQuin <claire@getchef.com>2014-11-03 15:21:03 -0800
committerClaire McQuin <claire@getchef.com>2014-11-03 15:21:03 -0800
commita8538036a21846e22d45296380d7e500688381f5 (patch)
treef8051b1324daa2bb85dafc0ba9231c6403bb3caa
parente103dd534d62a88d41c2e927d37591fdcf54dc06 (diff)
downloadchef-a8538036a21846e22d45296380d7e500688381f5.tar.gz
Explicitly disable :should syntax in spec and mocks
-rw-r--r--spec/spec_helper.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index b1a0ebaa58..e3de80f3f1 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -91,6 +91,14 @@ RSpec.configure do |config|
config.filter_run :focus => true
config.filter_run_excluding :external => true
+ # Explicitly disable :should syntax
+ config.expect_with :rspec do |c|
+ c.syntax = :expect
+ end
+ config.mock_with :rspec do |c|
+ c.syntax = :expect
+ end
+
# Only run these tests on platforms that are also chef workstations
config.filter_run_excluding :workstation if solaris? or aix?