Sha256: 29071e9e6b2e233a9dce05da9de7f636e4b8f8d5e63862db855971af24511298
Contents?: true
Size: 1.23 KB
Versions: 7
Compression:
Stored size: 1.23 KB
Contents
# coding: utf-8 # frozen_string_literal: true $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) require 'rspec' require 'stealth' require 'sidekiq/testing' require 'mock_redis' # Requires supporting files with custom matchers and macros, etc, # in ./support/ and its subdirectories. Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } $redis = MockRedis.new $services_yml = File.read(File.join(File.dirname(__FILE__), 'support', 'services.yml')) RSpec.configure do |config| ENV['STEALTH_ENV'] = 'test' config.before(:each) do |example| Sidekiq::Testing.fake! Stealth.load_services_config!($services_yml) end config.expect_with :rspec do |expectations| # This option will default to `true` in RSpec 4. It makes the `description` # and `failure_message` of custom matchers include text for helper methods # defined using `chain`, e.g.: # be_bigger_than(2).and_smaller_than(4).description # # => "be bigger than 2 and smaller than 4" # ...rather than: # # => "be bigger than 2" expectations.include_chain_clauses_in_custom_matcher_descriptions = true expectations.on_potential_false_positives = :nothing end end
Version data entries
7 entries across 7 versions & 1 rubygems