From b295a399773eac505b8d613dafd1f5ba5c575198 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Mon, 2 Oct 2017 11:24:48 +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 58819817aa4..480da63c509 100644 --- a/spec/controllers/uploads_controller_spec.rb +++ b/spec/controllers/uploads_controller_spec.rb @@ -164,7 +164,7 @@ describe UploadsController do for_private_message: "true", format: :json } - end.first + end.find { |m| m.channel = '/uploads/composer' } expect(response).to be_success expect(message.data["id"]).to be