Sha256: db3fdfc41227cea09b5bb72309b3ef5c8683ffd5ecd305a9449546ffcaeb9e13

Contents?: true

Size: 943 Bytes

Versions: 1

Compression:

Stored size: 943 Bytes

Contents

require 'message_driver'

require File.join(File.dirname(__FILE__), '..', 'test_lib', 'broker_config')

Dir["./spec/support/**/*.rb"].sort.each {|f| require f}

RSpec.configure do |c|
  c.treat_symbols_as_metadata_keys_with_true_values = true
  c.order = 'random'
  c.filter_run :focus

  c.reporter.message("Acceptance Tests running with broker config: #{BrokerConfig.config}")

  spec_logger = Logger.new(STDOUT).tap { |l| l.level = Logger::FATAL }
  c.before(:each) do
    MessageDriver.logger = spec_logger
  end

  c.after(:each) do
    MessageDriver::Broker.reset
  end

  c.filter_run_excluding :no_ci if ENV['CI']=='true' && ENV['ADAPTER'] && ENV['ADAPTER'].start_with?('bunny')
  if c.inclusion_filter[:all_adapters] == true
    BrokerConfig.unconfigured_adapters.each do |a|
      c.filter_run_excluding a
    end
    c.filter_run_including BrokerConfig.current_adapter
  else
    c.run_all_when_everything_filtered = true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
message-driver-0.3.0 spec/spec_helper.rb