Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (13 sloc) 0.551 kb
CASSANDRA_VERSION ||= ENV['CASSANDRA_VERSION'] || '0.7'
require 'test/unit'
require "#{File.expand_path(File.dirname(__FILE__))}/../lib/cassandra/#{CASSANDRA_VERSION}"
begin; require 'ruby-debug'; rescue LoadError; end
begin
@test_client = Cassandra.new('Twitter', 'localhost:9160', {:exception_classes => []})
rescue Thrift::TransportException => e
#FIXME Make server automatically start if not running
if e.message =~ /Could not connect/
puts "*** Please start the Cassandra server by running 'rake cassandra'. ***"
exit 1
end
end
Jump to Line
Something went wrong with that request. Please try again.