Sha256: 18874577e33cc770226bd3a057cc9932355d49d9cf7cb2051d992989d08674d6
Contents?: true
Size: 1.26 KB
Versions: 2
Compression:
Stored size: 1.26 KB
Contents
require 'codeclimate-test-reporter' require 'rabbit_feed' require 'rspec/its' require 'timecop' require 'timeout' # Send data to code climate from semaphore # Disable the warning messages CodeClimate::TestReporter.configure do |config| config.logger.level = Logger::WARN end CodeClimate::TestReporter.start # Get rid of deprecation warnings I18n.enforce_available_locales = true # Loads the shared examples Dir['./spec/support/**/*.rb'].sort.each { |f| require f} # Loads the step definitions Dir.glob('spec/features/step_definitions/**/*_steps.rb') { |f| load f, true } RSpec.configure do |config| config.expect_with :rspec do |expects| expects.syntax = [:should, :expect] end config.before do reset_environment end config.after(connectivity: true) do Thread.kill @consumer_thread if @consumer_thread.present? end RabbitFeed::TestingSupport.include_support config end def reset_environment RabbitFeed.log = Logger.new('test.log') RabbitFeed.log.formatter = RabbitFeed::JsonLogFormatter RabbitFeed.environment = 'test' RabbitFeed.configuration_file_path = 'spec/fixtures/configuration.yml' RabbitFeed::Consumer.event_routing = nil RabbitFeed::Producer.event_definitions = nil end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rabbit_feed-2.3.1 | spec/spec_helper.rb |
rabbit_feed-2.3.0 | spec/spec_helper.rb |