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

Version Path
acts-as-taggable-on-1.0.12 spec/spec_helper.rb
di-acts-as-taggable-1.0.3 spec/spec_helper.rb
di-acts-as-taggable-1.0.2 spec/spec_helper.rb
di-acts-as-taggable-1.0.1 spec/spec_helper.rb
di-acts-as-taggable-1.0 spec/spec_helper.rb
acts-as-taggable-on-1.0.11 spec/spec_helper.rb
ordered-tags-0.0.1 spec/spec_helper.rb
acts-as-taggable-on-1.0.10 spec/spec_helper.rb
acts-as-taggable-on-1.0.9 spec/spec_helper.rb
acts-as-taggable-on-1.0.8 spec/spec_helper.rb
acts-as-taggable-on-1.0.7 spec/spec_helper.rb