Sha256: 43ae70ece95a7a3aad8c4114c6954e2a5bfe73263fb1e12c309d03b25933cb40
Contents?: true
Size: 755 Bytes
Versions: 2
Compression:
Stored size: 755 Bytes
Contents
# lib = File.expand_path("#{File.dirname(__FILE__)}/../lib") # $:.unshift(lib) unless $:.include?('lib') || $:.include?(lib) # require File.expand_path('../../lib/cassandra_object', __FILE__) require 'cassandra/0.8' require 'cassandra_object' require 'rails/test_help' class Issue < CassandraObject::Base key :uuid attribute :description, type: :string end module CassandraObject class TestCase < ActiveSupport::TestCase setup do CassandraObject::Base.establish_connection( keyspace: 'place_directory_development', # servers: '192.168.0.100:9160' servers: '127.0.0.1:9160' ) end teardown do Issue.delete_all end def connection CassandraObject::Base.connection end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
sessionm-cassandra_object-2.2.6 | test/test_helper.rb |
gotime-cassandra_object-2.2.4 | test/test_helper.rb |