diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-20 14:55:13 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-01-20 14:55:13 +0000 |
commit | dfed3d309e26c11ba4132aaf4c3cd25ad3b2c905 (patch) | |
tree | c1310189b961850f154406b4fd9ef72ffaefb1ac /activerecord/test | |
parent | 93f7cb2a80b53d38eb01aaeade8f5c8bf13090f2 (diff) | |
download | rails-dfed3d309e26c11ba4132aaf4c3cd25ad3b2c905.tar.gz rails-dfed3d309e26c11ba4132aaf4c3cd25ad3b2c905.tar.bz2 rails-dfed3d309e26c11ba4132aaf4c3cd25ad3b2c905.zip |
A few missing files
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@468 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/column_alias_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/activerecord/test/column_alias_test.rb b/activerecord/test/column_alias_test.rb new file mode 100644 index 0000000000..06a0a7f3b0 --- /dev/null +++ b/activerecord/test/column_alias_test.rb @@ -0,0 +1,12 @@ +require 'abstract_unit' +require 'fixtures/topic' + +class TestColumnAlias < Test::Unit::TestCase + + def test_column_alias + topic = Topic.find(1) + records = topic.connection.select_all("SELECT id AS pk FROM topics LIMIT 1") + assert_equal(records[0].keys[0], "pk") + end + +end |