mirror of
https://github.com/ENSL/ensl.org.git
synced 2024-12-26 12:30:48 +00:00
Fix topic spec
This commit is contained in:
parent
6fe08003b2
commit
f28d1e2f84
1 changed files with 2 additions and 3 deletions
|
@ -32,9 +32,8 @@ describe Topic do
|
||||||
it "returns 5 unique, most recently posted topics" do
|
it "returns 5 unique, most recently posted topics" do
|
||||||
topics = []
|
topics = []
|
||||||
10.times do
|
10.times do
|
||||||
topic = create :topic
|
topic = create :topic, first_post: "Foo"
|
||||||
topics << topic
|
topics.push(topic)
|
||||||
3.times { create :post, topic: topic }
|
|
||||||
end
|
end
|
||||||
recent_topics = Topic.recent_topics
|
recent_topics = Topic.recent_topics
|
||||||
topics.last(5).each do |topic|
|
topics.last(5).each do |topic|
|
||||||
|
|
Loading…
Reference in a new issue