Sha256: 0cb9bf199549de4ccbbd04dab737181f653da2de6b312e3f1bfd38d3e491d250
Contents?: true
Size: 1.2 KB
Versions: 3
Compression:
Stored size: 1.2 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 acts_as_taggable_on :languages acts_as_taggable_on :skills acts_as_taggable_on :needs, :offerings end class OtherTaggableModel < ActiveRecord::Base acts_as_taggable_on :tags, :languages acts_as_taggable_on :needs, :offerings 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
acts-as-taggable-on-1.0.15 | spec/spec_helper.rb |
acts-as-taggable-on-1.0.14 | spec/spec_helper.rb |
acts-as-taggable-on-1.0.13 | spec/spec_helper.rb |