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:
parent
1dd266741e
commit
552636c652
1 changed files with 5 additions and 0 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue