spec/spec_helper.rb in rubocop-rspec-1.12.0 vs spec/spec_helper.rb in rubocop-rspec-1.13.0

- old
+ new

@@ -23,9 +23,19 @@ config.mock_with :rspec do |mocks| mocks.syntax = :expect # Disable `should_receive` and `stub` end + # Forbid RSpec from monkey patching any of our objects + config.disable_monkey_patching! + + # We should address configuration warnings when we upgrade + config.raise_errors_for_deprecations! + + # RSpec gives helpful warnings when you are doing something wrong. + # We should take their advice! + config.raise_on_warning = true + config.include(ExpectViolation) end $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__))