Fix randomly failing spec.

This commit is contained in:
Guo Xiang Tan 2017-09-20 13:30:15 +08:00
parent 87b4246c14
commit bfda6884b1
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ describe UploadsController do
message = MessageBus.track_publish do
xhr :post, :create, file: fake_jpg, type: "composer"
end.first
end.find { |m| m.channel == '/uploads/composer' }
expect(response.status).to eq 200