Sha256: 3d051075a6c8e1dcd7b6473decfd10606a6c28cb83ad434b3994861db4943fd1

Contents?: true

Size: 449 Bytes

Versions: 11

Compression:

Stored size: 449 Bytes

Contents

require 'thin'
require 'lib/fake_async_middleware'

RSpec.configure do |config|
  config.expect_with :rspec do |c|
    c.syntax = [:should, :expect]
  end
  config.mock_with :rspec do |mocks|
    mocks.syntax = :should
  end
end

def wait_for(timeout_milliseconds)
  timeout = (timeout_milliseconds + 0.0) / 1000
  finish = Time.now + timeout
  t = Thread.new do
    while Time.now < finish && !yield
      sleep(0.001)
    end
  end
  t.join
end


Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
message_bus-1.0.9 spec/spec_helper.rb
message_bus-1.0.8 spec/spec_helper.rb
message_bus-1.0.7 spec/spec_helper.rb
message_bus-1.0.6 spec/spec_helper.rb
message_bus-1.0.5 spec/spec_helper.rb
message_bus-1.0.4 spec/spec_helper.rb
message_bus-1.0.3 spec/spec_helper.rb
message_bus-1.0.2 spec/spec_helper.rb
message_bus-1.0.1 spec/spec_helper.rb
message_bus-1.0.0 spec/spec_helper.rb
message_bus-0.9.6 spec/spec_helper.rb