require 'rubocop' require 'rubocop/rspec/support' 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'