Just don't use count with select DISTINCT

This commit is contained in:
Michael Sofaer and Raphael Sofaer 2010-12-24 00:31:36 -08:00
parent 426651d827
commit 331e6645c6

View file

@ -26,10 +26,8 @@ describe User do
it 'saves post into visible post ids' do
proc {
pp user.raw_visible_posts
user.add_to_streams(@post, @aspect_ids)
pp user.raw_visible_posts
}.should change{user.raw_visible_posts.count}.by(1)
}.should change{user.raw_visible_posts.all.length}.by(1)
user.reload.raw_visible_posts.should include @post
end