FEATURE: add max_reply_history to limit number of replies

that can be expanded, when clicking "in-reply-to"
This commit is contained in:
Sam
2014-10-27 09:44:42 +11:00
parent 6d3d425611
commit 1cc37e32b9
6 changed files with 14 additions and 4 deletions

View File

@ -715,6 +715,7 @@ describe Post do
it "returns the posts in reply to this post" do
p4.reply_history.should == [p1, p2]
p4.reply_history(1).should == [p2]
p3.reply_history.should be_blank
p2.reply_history.should == [p1]
end