diff options
author | Cédric FABIANSKI <cfabianski@leadformance.com> | 2013-01-04 16:12:29 +0100 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-01-05 04:39:32 -0300 |
commit | 162e2859813b31c50700b453aa61992dfa57139e (patch) | |
tree | f0ac3ba5606ceb6a2bd5b0b2ad8e5956685d3c53 | |
parent | 28fd867c9bc790636d37a28f288791cd0089a6fd (diff) | |
download | rails-162e2859813b31c50700b453aa61992dfa57139e.tar.gz rails-162e2859813b31c50700b453aa61992dfa57139e.tar.bz2 rails-162e2859813b31c50700b453aa61992dfa57139e.zip |
[#8743] Test case
- Reverting #a3cf03ef99 fixes the issue
Conflicts:
activerecord/test/cases/relations_test.rb
-rw-r--r-- | activerecord/test/cases/relations_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb index 0cd838c0b0..4f6116203e 100644 --- a/activerecord/test/cases/relations_test.rb +++ b/activerecord/test/cases/relations_test.rb @@ -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 |