spec/spec_helper.rb in rubocop-rspec-1.5.2 vs spec/spec_helper.rb in rubocop-rspec-1.5.3
- old
+ new
@@ -5,20 +5,25 @@
if ENV['CI']
require 'codeclimate-test-reporter'
CodeClimate::TestReporter.start
end
+Dir.glob(File.expand_path('support/*.rb', __dir__)).map(&method(:require))
+
RSpec.configure do |config|
config.order = :random
config.expect_with :rspec do |expectations|
expectations.syntax = :expect # Disable `should`
end
config.mock_with :rspec do |mocks|
mocks.syntax = :expect # Disable `should_receive` and `stub`
end
+
+ config.include(ExpectViolation)
end
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
+
require 'rubocop-rspec'