Sha256: 49dc2926d8ade9c0985b72f8e044413835c10157bcf7513d67555f6a327ca85c

Contents?: true

Size: 520 Bytes

Versions: 8

Compression:

Stored size: 520 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
    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

8 entries across 8 versions & 1 rubygems

Version Path
riak-sessions-0.9.7 spec/support/test_server.rb
riak-sessions-0.9.2 spec/support/test_server.rb
riak-sessions-0.9.0 spec/support/test_server.rb
riak-sessions-0.9.0.beta2 spec/support/test_server.rb
riak-sessions-0.9.0.beta spec/support/test_server.rb
riak-sessions-0.8.3 spec/support/test_server.rb
riak-sessions-0.8.2 spec/support/test_server.rb
riak-sessions-0.8.1 spec/support/test_server.rb