Fix specs.

This commit is contained in:
Guo Xiang Tan
2017-07-24 15:56:08 +09:00
parent 25448b70e4
commit fa09a02201
4 changed files with 8 additions and 14 deletions

View File

@ -60,7 +60,7 @@ RSpec.describe "Managing a topic's status update", type: :request do
end
it 'should be able to delete a topic status update' do
topic.update!(topic_timers: [Fabricate(:topic_timer)])
Fabricate(:topic_timer, topic: topic)
post "/t/#{topic.id}/timer.json",
time: nil,