From bfda6884b146b4ff0ba791014966854ef6e30aaa Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Wed, 20 Sep 2017 13:30:15 +0800 Subject: [PATCH] Fix randomly failing spec. --- spec/controllers/uploads_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/uploads_controller_spec.rb b/spec/controllers/uploads_controller_spec.rb index 31bf3577292..2dc04a70b77 100644 --- a/spec/controllers/uploads_controller_spec.rb +++ b/spec/controllers/uploads_controller_spec.rb @@ -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