diff options
author | Robert Pankowecki (Gavdi) <rpa@gavdi.com> | 2010-12-31 20:48:48 +0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-01-04 01:21:25 +0800 |
commit | febdf5a5a91ac04fad2c7996f7f55fa19f0ff7d7 (patch) | |
tree | 551746952c5480cb56709b5ffeef285d4b9ad269 /activerecord/test | |
parent | fd1daf9a8e751aaa700a18d6ac9c48b6f016ea7c (diff) | |
download | rails-febdf5a5a91ac04fad2c7996f7f55fa19f0ff7d7.tar.gz rails-febdf5a5a91ac04fad2c7996f7f55fa19f0ff7d7.tar.bz2 rails-febdf5a5a91ac04fad2c7996f7f55fa19f0ff7d7.zip |
Added one more failing test for bug #6036
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/relations_test.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb index 20bfafbc5e..ed6ea4db0a 100644 --- a/activerecord/test/cases/relations_test.rb +++ b/activerecord/test/cases/relations_test.rb @@ -27,6 +27,12 @@ class RelationTest < ActiveRecord::TestCase assert_equal van.id, Minivan.where(:minivan_id => van).to_a.first.minivan_id end + def test_do_not_double_quote_string_id_with_array + van = Minivan.last + assert van + assert_equal van, Minivan.where(:minivan_id => [van]).to_a.first + end + def test_bind_values relation = Post.scoped assert_equal [], relation.bind_values |