Sha256: f6d867c0667acaa1659b41875803702ecdc06c477c3ef84eed6439c85d825532

Contents?: true

Size: 692 Bytes

Versions: 18

Compression:

Stored size: 692 Bytes

Contents

require 'bundler/setup'
require 'minitest/autorun'
Bundler.require(:default, :test)

require 'support/connect'
autoload :Issue, 'support/issue'

module CassandraObject
  class TestCase < ActiveSupport::TestCase
    teardown do
      Issue.delete_all
    end

    def temp_object(&block)
      Class.new(CassandraObject::Base) do
        key :uuid
        self.column_family = 'Issues'

        def self.name
          'Issue'
        end

        instance_eval(&block)
      end
    end
  end

  module Types
    class TestCase < CassandraObject::TestCase
      attr_accessor :coder
      setup do
        @coder = self.class.name.sub(/Test$/, '').constantize.new
      end
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
gotime-cassandra_object-2.11.0 test/test_helper.rb
gotime-cassandra_object-2.10.11 test/test_helper.rb
gotime-cassandra_object-2.10.10 test/test_helper.rb
gotime-cassandra_object-2.10.9 test/test_helper.rb
gotime-cassandra_object-2.10.8 test/test_helper.rb
gotime-cassandra_object-2.10.7 test/test_helper.rb
gotime-cassandra_object-2.10.6 test/test_helper.rb
gotime-cassandra_object-2.10.5 test/test_helper.rb
gotime-cassandra_object-2.10.4 test/test_helper.rb
gotime-cassandra_object-2.10.3 test/test_helper.rb
gotime-cassandra_object-2.10.2 test/test_helper.rb
gotime-cassandra_object-2.10.1 test/test_helper.rb
gotime-cassandra_object-2.10.0 test/test_helper.rb
gotime-cassandra_object-2.9.2 test/test_helper.rb
gotime-cassandra_object-2.9.1 test/test_helper.rb
gotime-cassandra_object-2.9.0 test/test_helper.rb
gotime-cassandra_object-2.8.6 test/test_helper.rb
gotime-cassandra_object-2.8.5 test/test_helper.rb