A platform for community discussion. Free, open, simple.
DEV: Add debug for ChatablesControllerSpec (#20909)
Martin Brennanf7997ae882d9
diff --git a/plugins/chat/spec/requests/chat/api/chatables_controller_spec.rb b/plugins/chat/spec/requests/chat/api/chatables_controller_spec.rbindex 093e327e970..7d45ec82416 100644--- a/plugins/chat/spec/requests/chat/api/chatables_controller_spec.rb+++ b/plugins/chat/spec/requests/chat/api/chatables_controller_spec.rb@@ -155,6 +155,10 @@ RSpec.describe Chat::Api::ChatablesController doGroupUser.create(user: other_user, group: group)get "/chat/api/chatables", params: { filter: "janemay" }+ if response.status == 500+ puts "ERROR in ChatablesController spec:\n"+ puts response.body+ endexpect(response.status).to eq(200)expect(response.parsed_body["direct_message_channels"][0]["id"]).to eq(dm_chat_channel_2.id)end