Sha256: 81e5034b5125682e5d183666abd2ade5ffab6fac00734cd2d3f4002fbfd97278
Contents?: true
Size: 1.37 KB
Versions: 3
Compression:
Stored size: 1.37 KB
Contents
$:.unshift(File.dirname(__FILE__) + '/../lib') require 'rubygems' require 'test/unit' require 'mocha' require 'multi_rails_init' require 'active_record' require 'active_record/fixtures' require File.dirname(__FILE__) + '/../init.rb' ActiveRecord::Base.logger = Logger.new(File.dirname(__FILE__) + "/debug.log") ActiveRecord::Base.configurations = YAML::load(IO.read(File.dirname(__FILE__) + "/db/database.yml")) ActiveRecord::Base.establish_connection(ENV["DB"] || "sqlite3mem") ActiveRecord::Migration.verbose = false load(File.join(File.dirname(__FILE__), "db", "schema.rb")) class Person < ActiveRecord::Base has_many :phones has_many :taggings, :dependent => :destroy has_many :tags, :through => :taggings has_many :companies has_many :clients has_many :suppliers end class Phone < ActiveRecord::Base belongs_to :person set_inheritance_column false end class Tag < ActiveRecord::Base has_many :taggings, :dependent => :destroy has_many :people, :through => :taggings end class Tagging < ActiveRecord::Base belongs_to :person belongs_to :tag end class Company < ActiveRecord::Base belongs_to :person end class Client < Company end class Supplier < Company end class Test::Unit::TestCase #:nodoc: self.fixture_path = File.dirname(__FILE__) + "/fixtures/" self.use_transactional_fixtures = true self.use_instantiated_fixtures = false fixtures :all end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
merger-0.1.2 | test/test_helper.rb |
merger-0.1.1 | test/test_helper.rb |
merger-0.1.0 | test/test_helper.rb |