1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

testing that symbols work as sql literals

This commit is contained in:
Aaron Patterson 2010-10-15 15:46:13 -07:00
parent 1dd266741e
commit 552636c652

View file

@ -48,6 +48,11 @@ class Boolean < ActiveRecord::Base; end
class BasicsTest < ActiveRecord::TestCase
fixtures :topics, :companies, :developers, :projects, :computers, :accounts, :minimalistics, 'warehouse-things', :authors, :categorizations, :categories, :posts
def test_select_symbol
topic_ids = Topic.select(:id).map(&:id).sort
assert_equal Topic.find(:all).map(&:id), topic_ids
end
def test_table_exists
assert !NonExistentTable.table_exists?
assert Topic.table_exists?