Sha256: b85d40102b632ab301ba1247167f6e6290490dd33d8cc5a9a95a6be8610f0119

Contents?: true

Size: 501 Bytes

Versions: 3

Compression:

Stored size: 501 Bytes

Contents

CassandraObject::Base.establish_connection(
  keyspace: 'cassandra_object_test',
  servers: '127.0.0.1:9160'
)

CassandraObject::Tasks::Keyspace.new.tap do |keyspace_task|
  keyspace_task.drop('cassandra_object_test') if keyspace_task.exists?('cassandra_object_test')
  keyspace_task.create('cassandra_object_test')
end

CassandraObject::Tasks::ColumnFamily.new('cassandra_object_test').tap do |column_family_task|
  column_family_task.create('Issues') unless column_family_task.exists?('Issues')
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gotime-cassandra_object-3.0.5 test/support/connect.rb
gotime-cassandra_object-3.0.4 test/support/connect.rb
gotime-cassandra_object-3.0.3 test/support/connect.rb