Sha256: 7a900b4603ce1addd85f1e15ec2170f94d1ed5718119268f38717989a92a8241
Contents?: true
Size: 1.18 KB
Versions: 2
Compression:
Stored size: 1.18 KB
Contents
# require File.dirname(__FILE__) + '/../../../../spec/spec_helper' require 'rubygems' require 'active_support' require 'active_record' 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) RAILS_DEFAULT_LOGGER = Logger.new(File.join(File.dirname(__FILE__), "debug.log")) ActiveRecord::Base.logger = RAILS_DEFAULT_LOGGER ActiveRecord::Base.establish_connection( "adapter" => "sqlite3", "database" => TEST_DATABASE_FILE ) 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lwe-acts-as-taggable-on-1.0.7 | spec/spec_helper.rb |
lwe-acts-as-taggable-on-1.0.7.lwe | spec/spec_helper.rb |