diff options
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/finder_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/finder_test.rb b/activerecord/test/finder_test.rb index 307fd0934c..06c5229433 100644 --- a/activerecord/test/finder_test.rb +++ b/activerecord/test/finder_test.rb @@ -28,6 +28,10 @@ class FinderTest < Test::Unit::TestCase assert_equal(topics(:second).title, Topic.find([ 2 ]).first.title) end + def test_find_an_empty_array + assert_equal [], Topic.find([]) + end + def test_find_by_ids_missing_one assert_raises(ActiveRecord::RecordNotFound) { Topic.find(1, 2, 45) |