Sha256: ee92be66ea580fb007dba3f1859328a2ebba78445221922dbdfaf685bd18fe21

Contents?: true

Size: 731 Bytes

Versions: 1

Compression:

Stored size: 731 Bytes

Contents

require 'rubygems'
require 'activerecord'
require 'bacon'
require 'has_machine_tags'
require File.join(File.dirname(__FILE__), '..', 'init')

#Setup logger
require 'logger'
# ActiveRecord::Base.logger = Logger.new(File.join(File.dirname(__FILE__), "test.log"))
ActiveRecord::Base.logger = Logger.new(STDERR)
ActiveRecord::Base.logger.level = Logger::WARN

#Setup db
ActiveRecord::Base.configurations = {'sqlite3' => {:adapter => 'sqlite3', :database => ':memory:'}}
ActiveRecord::Base.establish_connection('sqlite3')

#Define schema
require File.join(File.dirname(__FILE__), 'schema')
class TaggableModel < ActiveRecord::Base
  has_machine_tags
end

class Bacon::Context
  def after_all; yield; end
  def before_all; yield; end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
has_machine_tags-0.1.7 test/test_helper.rb