Permalink
Browse files

Add additional test.

  • Loading branch information...
1 parent 033e3ef commit 735f046517e0fadada9c68a98358aa2ac1b6463d @cfis cfis committed Jan 12, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 test/test_associations.rb
@@ -19,6 +19,12 @@ def test_count_distinct
product = products(:first_product)
assert_equal(2, product.product_tariffs.count(:distinct => true))
end
+
+ def test_count_includes
+ count = Dorm.count(:include => :rooms,
+ :conditions => ["rooms.room_id = ?", 2])
+ assert_equal(1, count)
+ end
def test_products
assert_not_nil products(:first_product).product_tariffs

0 comments on commit 735f046

Please sign in to comment.