mirror of
https://github.com/github/rails.git
synced 2026-02-13 15:45:08 -05:00
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@468 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
13 lines
283 B
Ruby
13 lines
283 B
Ruby
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
|