Sha256: c1c722bc4e84230766cf4a3f5aad632548b9434f012efb23f972a83a23fdb3e9
Contents?: true
Size: 742 Bytes
Versions: 5
Compression:
Stored size: 742 Bytes
Contents
require 'rubocop' require 'rubocop/rspec/support' if ENV['CI'] require 'simplecov' SimpleCov.start end module SpecHelper ROOT = Pathname.new(__dir__).parent.freeze end spec_helper_glob = File.expand_path('{support,shared}/*.rb', __dir__) Dir.glob(spec_helper_glob).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'
Version data entries
5 entries across 5 versions & 1 rubygems