From a457ab1ca260ff7cd16ba4592fe795d2037907b6 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 6 Oct 2011 17:27:25 -0700 Subject: [PATCH] fix dumb post spec --- spec/models/post_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/post_spec.rb b/spec/models/post_spec.rb index 78bf73f04..fade3ab7a 100644 --- a/spec/models/post_spec.rb +++ b/spec/models/post_spec.rb @@ -37,7 +37,7 @@ describe Post do end it 'is limited to 15 posts' do Post.stub(:by_max_time).and_return(Post) - Post.stub(:includes_for_a_stream).and_return(Post) + Post.stub(:includes_for_a_stream).and_return(stub(:where => Post)) Post.should_receive(:limit) Post.for_a_stream(Time.now + 1, "created_at") end