Sha256: cb3772a3fb89ffd9253eba34b88dacada8657b79d39cbfa086beeff36c8c8542

Contents?: true

Size: 225 Bytes

Versions: 5

Compression:

Stored size: 225 Bytes

Contents

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

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
message-driver-1.0.1 spec/support/utils.rb
message-driver-1.0.0 spec/support/utils.rb
message-driver-0.7.2 spec/support/utils.rb
message-driver-0.7.1 spec/support/utils.rb
message-driver-0.7.0 spec/support/utils.rb