Sha256: 0a5406350d65ec86e2ee352f96b8e95c91294b9cd099b9be74f6c080600cb775
Contents?: true
Size: 559 Bytes
Versions: 1
Compression:
Stored size: 559 Bytes
Contents
module BrokerConfig def self.config adapter_file = File.expand_path("../../.adapter_under_test", __FILE__) adapter = ENV['ADAPTER'] || (File.exist?(adapter_file) && File.read(adapter_file).chomp) case adapter when 'bunny' { adapter: :bunny, vhost: 'message-driver-test' } when 'in_memory' {adapter: :in_memory} else {adapter: :in_memory} end end def self.current_adapter config[:adapter] end def self.unconfigured_adapters %w(bunny in_memory) - current_adapter end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
message-driver-0.1.0 | test_lib/broker_config.rb |