Sha256: c28beae474c60365e7afc4ee7e49290882a13e0b8f9dd2d36a969035769c016f

Contents?: true

Size: 343 Bytes

Versions: 9

Compression:

Stored size: 343 Bytes

Contents

RSpec.shared_context :start_tokyotyrant do |port|
  before :context do
    @tokyotyrant = spawn("ttserver -port #{port} -le -log #{tempdir}/tokyotyrant#{port}.log #{tempdir}/tokyotyrant#{port}.tch")
    sleep 0.5
  end

  after :context do
    Process.kill("TERM", @tokyotyrant)
    Process.wait(@tokyotyrant)
    @tokyotyrant = nil
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
moneta-1.5.2 spec/moneta/adapters/tokyotyrant/helper.rb
moneta-1.5.1 spec/moneta/adapters/tokyotyrant/helper.rb
moneta-1.5.0 spec/moneta/adapters/tokyotyrant/helper.rb
moneta-1.4.2 spec/moneta/adapters/tokyotyrant/helper.rb
moneta-1.4.1 spec/moneta/adapters/tokyotyrant/helper.rb
moneta-1.4.0 spec/moneta/adapters/tokyotyrant/helper.rb
moneta-1.3.0 spec/moneta/adapters/tokyotyrant/helper.rb
moneta-1.2.1 spec/moneta/adapters/tokyotyrant/helper.rb
moneta-1.2.0 spec/moneta/adapters/tokyotyrant/helper.rb