Sha256: 336c745c4df92ab178770d7bf903d38e0d62381a412ae8844ec201b8dc9f9785

Contents?: true

Size: 431 Bytes

Versions: 1

Compression:

Stored size: 431 Bytes

Contents

require "performer"
require "timeout"

module ConcurrencyUtilities
  def wait_until_sleep(thread)
    Thread.pass until thread.status == "sleep"
  end
end

RSpec.configure do |config|
  config.include(ConcurrencyUtilities)

  config.expect_with :rspec do |c|
    c.syntax = :should
  end

  config.mock_with :rspec do |c|
    c.syntax = :should
  end

  config.around(:each) do |example|
    Timeout.timeout(1, &example)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
performer-1.0.0 spec/spec_helper.rb