Browse Source

test: fix incorrect test descriptions

pull/1027/head
Sam Seed 4 years ago
parent
commit
76851ee791
  1. 4
      spec/requests/schemes_controller_spec.rb

4
spec/requests/schemes_controller_spec.rb

@ -674,7 +674,7 @@ RSpec.describe SchemesController, type: :request do
} }
end
it "renders primary client group after successful update" do
it "renders the same page with error message" do
expect(response).to have_http_status(:unprocessable_entity)
expect(page).to have_content("Create a new supported housing scheme")
expect(page).to have_content(I18n.t("activerecord.errors.models.scheme.attributes.service_name.invalid"))
@ -970,7 +970,7 @@ RSpec.describe SchemesController, type: :request do
} }
end
it "renders primary client group after successful update" do
it "renders the same page with error message" do
expect(response).to have_http_status(:unprocessable_entity)
expect(page).to have_content("Create a new supported housing scheme")
expect(page).to have_content(I18n.t("activerecord.errors.models.scheme.attributes.owning_organisation_id.invalid"))

Loading…
Cancel
Save