Sha256: 2859d125cb47fa9043ba91e6ef724cda4ed97747bcbe7b98e5457669c3c958cd
Contents?: true
Size: 686 Bytes
Versions: 3
Compression:
Stored size: 686 Bytes
Contents
require 'test/unit' require 'rubygems' gem 'rails', '>= 2.3.2' require 'active_record' require 'yaml' CONFIGURATIONS = YAML::load(IO.read('config/database.yml')) ENV['DB'] ||= 'postgres' # override as needed ActiveRecord::Base.establish_connection(CONFIGURATIONS[ENV['DB']]) $LOAD_PATH << File.join(File.dirname(__FILE__), '..', 'lib') require 'migration_comments' module TestHelper def setup ActiveRecord::Schema.define(:version => 1) do create_table :sample do |t| t.string :field1 t.integer :field2 end end end def teardown ActiveRecord::Schema.define do drop_table :sample end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
migration_comments-0.1.3 | test/test_helper.rb |
migration_comments-0.1.2 | test/test_helper.rb |
migration_comments-0.1.1 | test/test_helper.rb |