Skip to content

Commit

Permalink
Add additional test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Charlie Savage committed Jan 12, 2012
1 parent 033e3ef commit 735f046
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test_associations.rb
Expand Up @@ -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
Expand Down

0 comments on commit 735f046

Please sign in to comment.