Prefabricated posts
This commit is contained in:
parent
d3a59a43a1
commit
32e0c4997c
|
@ -100,9 +100,9 @@ describe TopicView do
|
||||||
end
|
end
|
||||||
|
|
||||||
context "with a few sample posts" do
|
context "with a few sample posts" do
|
||||||
let!(:p1) { Fabricate(:post, topic: topic, user: first_poster, percent_rank: 1) }
|
fab!(:p1) { Fabricate(:post, topic: topic, user: first_poster, percent_rank: 1) }
|
||||||
let!(:p2) { Fabricate(:post, topic: topic, user: evil_trout, percent_rank: 0.5) }
|
fab!(:p2) { Fabricate(:post, topic: topic, user: evil_trout, percent_rank: 0.5) }
|
||||||
let!(:p3) { Fabricate(:post, topic: topic, user: first_poster, percent_rank: 0) }
|
fab!(:p3) { Fabricate(:post, topic: topic, user: first_poster, percent_rank: 0) }
|
||||||
|
|
||||||
it "it can find the best responses" do
|
it "it can find the best responses" do
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue