Skip to content

Commit 00863f7

Browse files
committed
Update storage_files_api_spec.rb
1 parent 1e99baa commit 00863f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/storages/spec/requests/api/v3/storages/storage_files_api_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,10 @@
203203
let(:error) { :forbidden }
204204

205205
it "fails with outbound request failure" do
206-
expect(last_response).to have_http_status(:forbidden)
206+
expect(last_response).to have_http_status(:internal_server_error)
207207

208208
body = JSON.parse(last_response.body)
209-
expect(body["message"]).to eq(I18n.t("services.errors.messages.forbidden"))
209+
expect(body["message"]).to eq(I18n.t("services.errors.messages.forbidden", status_code: 403))
210210
expect(body["errorIdentifier"]).to eq("urn:openproject-org:api:v3:errors:OutboundRequest:Forbidden")
211211
end
212212
end

0 commit comments

Comments
 (0)