Sha256: 146165d3ef54b72b082ceaeb3c7dd37e771de57c4a8aa152ebf10375dc7c3f40

Contents?: true

Size: 252 Bytes

Versions: 6

Compression:

Stored size: 252 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

6 entries across 6 versions & 1 rubygems

Version Path
message-driver-0.6.1 spec/support/utils.rb
message-driver-0.6.0 spec/support/utils.rb
message-driver-0.5.3 spec/support/utils.rb
message-driver-0.5.2 spec/support/utils.rb
message-driver-0.5.1 spec/support/utils.rb
message-driver-0.5.0 spec/support/utils.rb