DEV: Correct forums_controller success spec (#24690)

The implementation did not match the name of the spec
This commit is contained in:
David Taylor 2023-12-04 14:26:29 +00:00 committed by GitHub
parent 9479b30ada
commit cf8961e1c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -39,9 +39,9 @@ RSpec.describe ForumsController do
it "returns a 200 response if the cluster does match" do
global_setting(:cluster_name, "mycluster")
get "/srv/status?cluster=abc"
expect(response.status).to eq(500)
expect(response.body).to include("not match")
get "/srv/status?cluster=mycluster"
expect(response.status).to eq(200)
expect(response.body).not_to include("not match")
end
it "returns a 200 response when given shutdown_ok" do