not a responsibility for rails to test

This commit is contained in:
Aaron Patterson 2010-12-03 16:22:42 -08:00
parent d21f38aaa2
commit a299fcaef9
1 changed files with 0 additions and 10 deletions

View File

@ -44,16 +44,6 @@ class AssociationsJoinModelTest < ActiveRecord::TestCase
assert !authors(:mary).unique_categorized_posts.loaded? assert !authors(:mary).unique_categorized_posts.loaded?
end end
def test_column_caching
# pre-heat our cache
Post.arel_table.columns
Comment.columns
Post.connection.column_calls = 0
2.times { Post.joins(:comments).to_a }
assert_equal 0, Post.connection.column_calls
end
def test_has_many_uniq_through_find def test_has_many_uniq_through_find
assert_equal 1, authors(:mary).unique_categorized_posts.find(:all).size assert_equal 1, authors(:mary).unique_categorized_posts.find(:all).size
end end