Sha256: e005e12109eb574cc3488ae48353f5f99174f128c91a4132162b3c3b419748c0

Contents?: true

Size: 191 Bytes

Versions: 2

Compression:

Stored size: 191 Bytes

Contents

class DummyServer

  def first_request
    @wait_num = rand(1..10)
    @tries_num = 0
  end

  def following_request
    @tries_num += 1
    @tries_num == @wait_num ? true : false
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
karousel-0.9.9 spec/support/dummy_server.rb
karousel-0.9.8 spec/support/dummy_server.rb