mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
[#8743] Test case
- Reverting #a3cf03ef99 fixes the issue Conflicts: activerecord/test/cases/relations_test.rb
This commit is contained in:
parent
28fd867c9b
commit
162e285981
1 changed files with 5 additions and 0 deletions
|
@ -745,6 +745,11 @@ class RelationTest < ActiveRecord::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
def test_relation_to_sql
|
||||
sql = Post.first.comments.to_sql
|
||||
assert_no_match(/\?/, sql)
|
||||
end
|
||||
|
||||
def test_count
|
||||
posts = Post.all
|
||||
|
||||
|
|
Loading…
Reference in a new issue