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