Sha256: bb25147cd0d1221e7a4d6a454604eed8fd04719d0239f92861ccb195ba43d373

Contents?: true

Size: 674 Bytes

Versions: 16

Compression:

Stored size: 674 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
        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

16 entries across 16 versions & 1 rubygems

Version Path
gotime-cassandra_object-2.13.0 test/test_helper.rb
gotime-cassandra_object-2.12.5 test/test_helper.rb
gotime-cassandra_object-2.12.4 test/test_helper.rb
gotime-cassandra_object-2.12.3 test/test_helper.rb
gotime-cassandra_object-2.12.2 test/test_helper.rb
gotime-cassandra_object-2.12.1 test/test_helper.rb
gotime-cassandra_object-2.12.0 test/test_helper.rb
gotime-cassandra_object-2.11.9 test/test_helper.rb
gotime-cassandra_object-2.11.8 test/test_helper.rb
gotime-cassandra_object-2.11.7 test/test_helper.rb
gotime-cassandra_object-2.11.6 test/test_helper.rb
gotime-cassandra_object-2.11.5 test/test_helper.rb
gotime-cassandra_object-2.11.4 test/test_helper.rb
gotime-cassandra_object-2.11.3 test/test_helper.rb
gotime-cassandra_object-2.11.2 test/test_helper.rb
gotime-cassandra_object-2.11.1 test/test_helper.rb