Sha256: b331641badb4971a1e1e2b98caa9ffc1d6bbf5b5e5f00df2f16d3c52c2f9e0cb
Contents?: true
Size: 937 Bytes
Versions: 1
Compression:
Stored size: 937 Bytes
Contents
require 'bundler/setup' Bundler.require(:default, :test) require 'rails/test_help' require 'mocha/setup' require 'cassandra_object' require 'support/cassandra' require 'support/issue' require 'support/issue_dynamic' require 'support/issue_custom_config' require 'support/issue_schema' require 'support/issue_schema_child' require 'support/issue_schema_father' 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) if block_given? 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
extendi-cassandra_object-1.0.7 | test/test_helper.rb |