Sha256: 336e532b874d5bd2e1d2d35976b20cdbb22e4a31b062e00d37836c2aeec712f9
Contents?: true
Size: 1.11 KB
Versions: 11
Compression:
Stored size: 1.11 KB
Contents
# require File.dirname(__FILE__) + '/../../../../spec/spec_helper' require 'rubygems' require 'activerecord' require 'spec' module Spec::Example::ExampleGroupMethods alias :context :describe end TEST_DATABASE_FILE = File.join(File.dirname(__FILE__), '..', 'test.sqlite3') File.unlink(TEST_DATABASE_FILE) if File.exist?(TEST_DATABASE_FILE) ActiveRecord::Base.establish_connection( "adapter" => "sqlite3", "database" => TEST_DATABASE_FILE ) RAILS_DEFAULT_LOGGER = Logger.new(File.join(File.dirname(__FILE__), "debug.log")) load(File.dirname(__FILE__) + '/schema.rb') $: << File.join(File.dirname(__FILE__), '..', 'lib') require File.join(File.dirname(__FILE__), '..', 'init') class TaggableModel < ActiveRecord::Base acts_as_taggable_on :tags, :languages acts_as_taggable_on :skills end class OtherTaggableModel < ActiveRecord::Base acts_as_taggable_on :tags, :languages end class InheritingTaggableModel < TaggableModel end class AlteredInheritingTaggableModel < TaggableModel acts_as_taggable_on :parts end class TaggableUser < ActiveRecord::Base acts_as_tagger end class UntaggableModel < ActiveRecord::Base end
Version data entries
11 entries across 11 versions & 3 rubygems