Sha256: 64b5eb07ccfd45860d6cff7895b751e6bcdbbb6656afd3cb13f79434e05fb335

Contents?: true

Size: 463 Bytes

Versions: 1

Compression:

Stored size: 463 Bytes

Contents

require 'cassandra_object'
require 'rails/test_help'

class Issue < CassandraObject::Base
  key :uuid
end

module CassandraObject
  class TestCase < ActiveSupport::TestCase
    setup do
      CassandraObject::Base.establish_connection(
        keyspace: 'place_directory_development',
        servers: '192.168.0.100:9160'
      )
    end

    teardown do
      Issue.delete_all
    end

    def connection
      CassandraObject::Base.connection
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gotime-cassandra_object-2.0.0 test/test_helper.rb