Browse Source

Fixes translation file test

pull/716/head
Stéphane Meny 3 years ago
parent
commit
a08bbe669f
No known key found for this signature in database
GPG Key ID: 9D0AFEA988527923
  1. 2
      spec/requests/schemes_controller_spec.rb

2
spec/requests/schemes_controller_spec.rb

@ -406,7 +406,7 @@ RSpec.describe SchemesController, type: :request do
it "displays the new page with an error message" do it "displays the new page with an error message" do
post "/schemes", params: params post "/schemes", params: params
expect(response).to have_http_status(:unprocessable_entity) expect(response).to have_http_status(:unprocessable_entity)
expect(page).to have_content(I18n.t("activerecord.errors.models.scheme.attributes.owning_organisation.required")) expect(page).to have_content(I18n.t("activerecord.errors.models.scheme.attributes.owning_organisation_id.required"))
end end
end end
end end

Loading…
Cancel
Save