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