Sha256: 779fbeefdc8877830df26886a31a6ba1f41e49debe576beacf431dd57f47f344
Contents?: true
Size: 793 Bytes
Versions: 2
Compression:
Stored size: 793 Bytes
Contents
require 'rubygems' require 'bundler/setup' require 'test/unit' require 'cassandra/0.8' require 'cassandra_object' 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 module Types class TestCase < ActiveSupport::TestCase attr_accessor :coder setup do @coder = self.class.name.sub(/Test$/, '').constantize.new end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gotime-cassandra_object-2.3.6 | test/test_helper.rb |
gotime-cassandra_object-2.3.5 | test/test_helper.rb |