Skip to content
Browse files

Add a test case for exists? with multiple values

  • Loading branch information...
1 parent c27fde2 commit 78befcfc287eae6dbfbd6287329b1cbcd9d77e3c Rafael Mendonça França + Kassio Borges committed Sep 4, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 activerecord/test/cases/finder_test.rb
View
1 activerecord/test/cases/finder_test.rb
@@ -51,6 +51,7 @@ def test_exists
assert_equal true, Topic.exists?(heading: "The First Topic")
assert_equal true, Topic.exists?(:author_name => "Mary", :approved => true)
assert_equal true, Topic.exists?(["parent_id = ?", 1])
+ assert_equal true, Topic.exists?(id: [1, 9999])
assert_equal false, Topic.exists?(45)
assert_equal false, Topic.exists?(Topic.new)

0 comments on commit 78befcf

Please sign in to comment.
Something went wrong with that request. Please try again.