Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (34 sloc) 0.791 kB
require 'rubygems'
require 'rake'
require 'rake/testtask'
Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.test_files=Dir.glob( "test/**/*_test.rb" ).sort
t.verbose = true
end
Rake::TestTask.new(:legacy_test) do |t|
t.libs << "test/legacy"
t.libs << "test"
t.test_files=Dir.glob( "test/**/*_test.rb" ).sort
t.verbose = true
end
task :cleanup do
unless defined?(CassandraObject)
$: << 'test'
$: << 'lib'
require 'test_helper'
end
puts "Clearing keyspace! ..."
CassandraObject::Base.connection.clear_keyspace!
puts "Cleared"
end
task :config_snippet do
unless defined?(CassandraObject)
$: << 'test'
$: << 'lib'
require 'test_helper'
end
puts CassandraObject::Base.storage_config_xml
end
task :default=>[:test, :cleanup] do
end
Jump to Line
Something went wrong with that request. Please try again.