DEV: Apply syntax_tree formatting to spec/*

This commit is contained in:
David Taylor
2023-01-09 11:18:21 +00:00
parent 0cf6421716
commit cb932d6ee1
907 changed files with 58693 additions and 45909 deletions

View File

@ -38,10 +38,11 @@ RSpec.describe Admin::AdminController do
it "permits access with a 200 response" do
api_key = Fabricate(:api_key, user: admin)
get "/admin.json", headers: {
HTTP_API_KEY: api_key.key,
HTTP_API_USERNAME: admin.username
}
get "/admin.json",
headers: {
HTTP_API_KEY: api_key.key,
HTTP_API_USERNAME: admin.username,
}
expect(response.status).to eq(200)
end
@ -51,10 +52,11 @@ RSpec.describe Admin::AdminController do
it "denies access with a 403 response" do
api_key = Fabricate(:api_key, user: moderator)
get "/admin.json", headers: {
HTTP_API_KEY: api_key.key,
HTTP_API_USERNAME: moderator.username
}
get "/admin.json",
headers: {
HTTP_API_KEY: api_key.key,
HTTP_API_USERNAME: moderator.username,
}
expect(response.status).to eq(403)
expect(response.parsed_body["errors"]).to include(I18n.t("invalid_access"))