Sha256: ee14190d43bcb94e28e7f58c2d83798225cf25e2bac41e295a655190a8e701c4
Contents?: true
Size: 621 Bytes
Versions: 1
Compression:
Stored size: 621 Bytes
Contents
require 'spec' require 'shoulda' require 'active_support' require 'active_record' require 'scoped-tags' Spec::Runner.configure do |config| config.include(Shoulda::ActiveRecord::Matchers, :type => :model) end TEST_DATABASE_FILE = 'spec/test.sqlite3' File.unlink(TEST_DATABASE_FILE) if File.exist?(TEST_DATABASE_FILE) ActiveRecord::Base.establish_connection( "adapter" => "sqlite3", "database" => TEST_DATABASE_FILE ) load('schema.rb') RAILS_DEFAULT_LOGGER = Logger.new("spec/debug.log") class ScopedTaggedModel < ActiveRecord::Base scoped_tags :genres end class UnScopedTaggedModel < ActiveRecord::Base end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
scoped-tags-0.3.1 | spec/spec_helper.rb |