DEV: Apply syntax_tree formatting to plugins/*

This commit is contained in:
David Taylor
2023-01-06 20:42:16 +00:00
parent 93e2dad656
commit 055310cea4
110 changed files with 3712 additions and 3158 deletions

View File

@ -12,11 +12,7 @@ RSpec.describe Chat::Api::ChatChannelsCurrentUserNotificationsSettingsController
include_examples "channel access example",
:put,
"/notifications-settings/me",
{
notifications_settings: {
muted: true,
},
}
{ notifications_settings: { muted: true } }
context "when category channel has invalid params" do
fab!(:channel_1) { Fabricate(:category_channel) }

View File

@ -61,9 +61,9 @@ RSpec.describe Chat::Api::ChatChannelsStatusController do
context "when changing from open to closed" do
it "changes the status" do
expect { put "/chat/api/channels/#{channel_1.id}/status", params: status("closed") }.to change {
channel_1.reload.status
}.to("closed").from("open")
expect {
put "/chat/api/channels/#{channel_1.id}/status", params: status("closed")
}.to change { channel_1.reload.status }.to("closed").from("open")
expect(response.status).to eq(200)
channel = response.parsed_body["channel"]
@ -75,9 +75,9 @@ RSpec.describe Chat::Api::ChatChannelsStatusController do
before { channel_1.update!(status: "closed") }
it "changes the status" do
expect { put "/chat/api/channels/#{channel_1.id}/status", params: status("open") }.to change {
channel_1.reload.status
}.to("open").from("closed")
expect {
put "/chat/api/channels/#{channel_1.id}/status", params: status("open")
}.to change { channel_1.reload.status }.to("open").from("closed")
expect(response.status).to eq(200)
channel = response.parsed_body["channel"]