Sha256: 969b4ff2eee4a903e917c2c810ce1af7944379088b9343fdb7419d722e15991b
Contents?: true
Size: 948 Bytes
Versions: 5
Compression:
Stored size: 948 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 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
5 entries across 5 versions & 1 rubygems