diff options
author | Marcel Molina <marcel@vernix.org> | 2005-10-06 22:21:10 +0000 |
---|---|---|
committer | Marcel Molina <marcel@vernix.org> | 2005-10-06 22:21:10 +0000 |
commit | e8b427cdefd9ec851e2853d4bf21dd8fd676096d (patch) | |
tree | 7aae75a60ff2fb3dfa62dbcedd21d4d216684abf /activerecord/test/conditions_scoping_test.rb | |
parent | bcb50f3c893e070caa3abf06bee03885f1601190 (diff) | |
download | rails-e8b427cdefd9ec851e2853d4bf21dd8fd676096d.tar.gz rails-e8b427cdefd9ec851e2853d4bf21dd8fd676096d.tar.bz2 rails-e8b427cdefd9ec851e2853d4bf21dd8fd676096d.zip |
Raise an exception when invalid options are passed to ActiveRecord::Base.find. Closes #2363.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2481 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/conditions_scoping_test.rb')
-rw-r--r-- | activerecord/test/conditions_scoping_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/test/conditions_scoping_test.rb b/activerecord/test/conditions_scoping_test.rb index 8ff708658c..2f5b28f30f 100644 --- a/activerecord/test/conditions_scoping_test.rb +++ b/activerecord/test/conditions_scoping_test.rb @@ -28,7 +28,6 @@ class ConditionsScopingTest < Test::Unit::TestCase def test_scoped_find_all Developer.constrain(:conditions => "name = 'David'") do assert_equal [Developer.find(1)], Developer.find(:all) - assert_equal [Developer.find(1)], Developer.find(:all, :condtions => '1 = 2') end end @@ -134,4 +133,4 @@ class HasOneScopingTest< Test::Unit::TestCase end -=end
\ No newline at end of file +=end |