diff options
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/column_alias_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/column_alias_test.rb b/activerecord/test/column_alias_test.rb index f84d584eee..fbc93f1034 100644 --- a/activerecord/test/column_alias_test.rb +++ b/activerecord/test/column_alias_test.rb @@ -8,11 +8,11 @@ class TestColumnAlias < Test::Unit::TestCase if ActiveRecord::ConnectionAdapters.const_defined? :OracleAdapter if ActiveRecord::Base.connection.instance_of?(ActiveRecord::ConnectionAdapters::OracleAdapter) records = topic.connection.select_all("SELECT id AS pk FROM topics WHERE ROWNUM < 2") - assert_equal(records[0].keys[0], "pk") + assert_equal("pk", records[0].keys[0]) end else records = topic.connection.select_all("SELECT id AS pk FROM topics") - assert_equal(records[0].keys[0], "pk") + assert_equal("pk", records[0].keys[0]) end end |