test_lib/broker_config.rb in message-driver-0.3.0 vs test_lib/broker_config.rb in message-driver-0.4.0
- old
+ new
@@ -1,9 +1,9 @@
class BrokerConfig
class << self
def config
- adapter_file = File.expand_path("../../.adapter_under_test", __FILE__)
- @adapter, @version = (ENV['ADAPTER'] || (File.exist?(adapter_file) && File.read(adapter_file).chomp)).split(":")
+ adapter_file = File.expand_path('../../.adapter_under_test', __FILE__)
+ @adapter, @version = (ENV['ADAPTER'] || (File.exist?(adapter_file) ? File.read(adapter_file).chomp : '')).split(':')
case @adapter
when 'bunny'
{
adapter: :bunny,
vhost: 'message-driver-test',