diff options
author | Pratik Naik <pratiknaik@gmail.com> | 2009-12-26 12:57:34 +0530 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2009-12-26 12:57:34 +0530 |
commit | 187fbe5cbadf9d6fe5009a4a436fac28bcf8c99c (patch) | |
tree | ef880781f965fab4c0312fb41865d83ab75ec144 /activerecord/test/cases | |
parent | 5f5aa44d2de9e7d93087d52862502c12722bdae3 (diff) | |
download | rails-187fbe5cbadf9d6fe5009a4a436fac28bcf8c99c.tar.gz rails-187fbe5cbadf9d6fe5009a4a436fac28bcf8c99c.tar.bz2 rails-187fbe5cbadf9d6fe5009a4a436fac28bcf8c99c.zip |
Add support for multiple arguments to .where finder
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/relations_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/relations_test.rb b/activerecord/test/cases/relations_test.rb index 529de4a6cf..50bd221bb3 100644 --- a/activerecord/test/cases/relations_test.rb +++ b/activerecord/test/cases/relations_test.rb @@ -27,6 +27,7 @@ class RelationTest < ActiveRecord::TestCase def test_finding_with_conditions assert_equal ["David"], Author.where(:name => 'David').map(&:name) assert_equal ['Mary'], Author.where(["name = ?", 'Mary']).map(&:name) + assert_equal ['Mary'], Author.where("name = ?", 'Mary').map(&:name) end def test_finding_with_order |