FIX: Randomly failing TopicList specs.

This commit is contained in:
Guo Xiang Tan 2016-06-09 22:01:48 +08:00
parent 42ec8a7c3d
commit ff577405ae
No known key found for this signature in database
GPG Key ID: 19C321C8952B0F72
1 changed files with 4 additions and 0 deletions

View File

@ -5,6 +5,10 @@ describe TopicList do
let(:user) { topic.user }
let(:topic_list) { TopicList.new("liked", user, [topic]) }
before do
TopicList.preloaded_custom_fields.clear
end
after do
TopicList.preloaded_custom_fields.clear
end