Sha256: f8e7d90fef1aeff0b1ebbeff9653222edf7ce5ad2507241c235eb391f909587a
Contents?: true
Size: 720 Bytes
Versions: 10
Compression:
Stored size: 720 Bytes
Contents
require 'bundler/setup' require 'minitest/autorun' Bundler.require(:default, :test) require 'support/connect' require 'support/teardown' require 'support/issue' module CassandraObject class TestCase < ActiveSupport::TestCase def temp_object(&block) Class.new(CassandraObject::Base) do self.column_family = 'Issues' string :force_save before_save { self.force_save = 'junk' } 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
10 entries across 10 versions & 1 rubygems