diff options
author | danielsdeleo <dan@getchef.com> | 2014-06-09 12:13:06 -0700 |
---|---|---|
committer | danielsdeleo <dan@getchef.com> | 2014-06-09 12:13:06 -0700 |
commit | d1efd12c460cd4e6859d1d716a3f50db56540c8f (patch) | |
tree | a8abe136d88f2df2142fcd786fa76b52ad93d6fd /spec | |
parent | c7b4419197e7222ee8f880dbaca5c6cbf88f127e (diff) | |
download | ohai-d1efd12c460cd4e6859d1d716a3f50db56540c8f.tar.gz |
Configure rspec to allow 'should' syntax for mocks+expectationsrspec3-ci-fail-fix
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec_helper.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 6c982273..7626497c 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -85,7 +85,17 @@ def it_should_check_from_deep_mash(plugin, mash, attribute, from, value) end RSpec.configure do |config| - config.treat_symbols_as_metadata_keys_with_true_values = true + + config.raise_errors_for_deprecations! + + # `expect` should be preferred for new tests or when refactoring old tests, + # but we're not going to do a "big bang" change at this time. + config.expect_with :rspec do |c| + c.syntax = [:should, :expect] + end + config.mock_with :rspec do |c| + c.syntax = [:expect, :should] + end config.filter_run :focus => true |