~michaelforrest/use-case-mapper/trunk

« back to all changes in this revision

Viewing changes to vendor/rails/activerecord/test/cases/synonym_test_oracle.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
 
require "cases/helper"
2
 
require 'models/topic'
3
 
require 'models/subject'
4
 
 
5
 
# confirm that synonyms work just like tables; in this case
6
 
# the "subjects" table in Oracle (defined in oci.sql) is just
7
 
# a synonym to the "topics" table
8
 
 
9
 
class TestOracleSynonym < ActiveRecord::TestCase
10
 
 
11
 
  def test_oracle_synonym
12
 
    topic = Topic.new
13
 
    subject = Subject.new
14
 
    assert_equal(topic.attributes, subject.attributes)
15
 
  end
16
 
 
17
 
end