~michaelforrest/use-case-mapper/trunk

« back to all changes in this revision

Viewing changes to vendor/rails/activerecord/test/cases/aaa_create_tables_test.rb

  • Committer: Richard Lee (Canonical)
  • Date: 2010-10-15 15:17:58 UTC
  • mfrom: (190.1.3 use-case-mapper)
  • Revision ID: richard.lee@canonical.com-20101015151758-wcvmfxrexsongf9d
Merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# The filename begins with "aaa" to ensure this is the first test.
2
 
require "cases/helper"
3
 
 
4
 
class AAACreateTablesTest < ActiveRecord::TestCase
5
 
  self.use_transactional_fixtures = false
6
 
 
7
 
  def test_load_schema
8
 
    eval(File.read(SCHEMA_ROOT + "/schema.rb"))
9
 
    if File.exists?(adapter_specific_schema_file)
10
 
      eval(File.read(adapter_specific_schema_file))
11
 
    end
12
 
    assert true
13
 
  end
14
 
 
15
 
  def test_drop_and_create_courses_table
16
 
    eval(File.read(SCHEMA_ROOT + "/schema2.rb"))
17
 
    assert true
18
 
  end
19
 
 
20
 
  private
21
 
  def adapter_specific_schema_file
22
 
    SCHEMA_ROOT + '/' + ActiveRecord::Base.connection.adapter_name.downcase + '_specific_schema.rb'
23
 
  end
24
 
end