Sha256: fbc9de6d00f04db56ef6750f2e41a3629e752a66600ca77843b8d24a12de1006

Contents?: true

Size: 250 Bytes

Versions: 7

Compression:

Stored size: 250 Bytes

Contents

module Utils
  def pause_if_needed(seconds=0.1)
    seconds *= 10 if ENV['CI'] == 'true'
    case BrokerConfig.current_adapter
    when :in_memory
    else
      sleep seconds
    end
  end
end

RSpec.configure do |config|
  config.include Utils
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
message-driver-0.4.0 spec/support/utils.rb
message-driver-0.3.0 spec/support/utils.rb
message-driver-0.2.2 spec/support/utils.rb
message-driver-0.2.1 spec/support/utils.rb
message-driver-0.2.0 spec/support/utils.rb
message-driver-0.2.0.rc2 spec/support/utils.rb
message-driver-0.2.0.rc1 spec/support/utils.rb