fix dumb post spec
This commit is contained in:
parent
018a42b001
commit
a457ab1ca2
1 changed files with 1 additions and 1 deletions
|
|
@ -37,7 +37,7 @@ describe Post do
|
||||||
end
|
end
|
||||||
it 'is limited to 15 posts' do
|
it 'is limited to 15 posts' do
|
||||||
Post.stub(:by_max_time).and_return(Post)
|
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.should_receive(:limit)
|
||||||
Post.for_a_stream(Time.now + 1, "created_at")
|
Post.for_a_stream(Time.now + 1, "created_at")
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue