Sha256: 6850617af78efec89c8fd319f59ac107dbba3fa39f3c914479327ff8e16e8b03
Contents?: true
Size: 1.19 KB
Versions: 2
Compression:
Stored size: 1.19 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 class Domain class << self def current_domain_id 1 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acts-as-taggable-on-for-domains-0.1.1 | spec/spec_helper.rb |
acts-as-taggable-on-for-domains-0.1.0 | spec/spec_helper.rb |