Sha256: 49ff2ac939099907c154a9ac88814ad029a3f83851fe75810db45d2529eeaed3

Contents?: true

Size: 562 Bytes

Versions: 4

Compression:

Stored size: 562 Bytes

Contents

require 'riak/test_server'

unless $test_server
  begin    
    require 'yaml'
    config = YAML.load_file("spec/support/test_server.yml")
    $test_server = Riak::TestServer.new(config.symbolize_keys)
    $test_server.prepare!
    $test_server.start
    Ripple.config = {:http_port => 9000 }
    at_exit { $test_server.cleanup }
  rescue => e
    warn "Can't run Riak::TestServer specs. Specify the location of your Riak installation in spec/support/test_server.yml. See Riak::TestServer docs for more info."
    warn e.inspect
    $test_server = nil
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ripple-0.9.5 spec/support/test_server.rb
ripple-0.9.3 spec/support/test_server.rb
ripple-0.9.2 spec/support/test_server.rb
ripple-0.9.0 spec/support/test_server.rb