Sha256: 064e21c315d4474218467dfd58ccb85def06c550027296d2c2f688e9e53582ab

Contents?: true

Size: 731 Bytes

Versions: 5

Compression:

Stored size: 731 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_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

5 entries across 5 versions & 1 rubygems

Version Path
gotime-cassandra_object-2.2.3 test/test_helper.rb
gotime-cassandra_object-2.2.2 test/test_helper.rb
gotime-cassandra_object-2.2.1 test/test_helper.rb
gotime-cassandra_object-2.2.0 test/test_helper.rb
gotime-cassandra_object-2.1.2 test/test_helper.rb