From 92e5f5be8376630c80311e45571bd7c9664702d5 Mon Sep 17 00:00:00 2001 From: baarkerlounger Date: Mon, 20 Jun 2022 13:22:26 +0100 Subject: [PATCH] Model test --- spec/models/organisation_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/models/organisation_spec.rb b/spec/models/organisation_spec.rb index ac6a0fc6c..9836b9462 100644 --- a/spec/models/organisation_spec.rb +++ b/spec/models/organisation_spec.rb @@ -20,7 +20,7 @@ RSpec.describe Organisation, type: :model do it "validates provider_type presence" do expect { FactoryBot.create(:organisation, provider_type: nil) } - .to raise_error(ActiveRecord::RecordInvalid, "Validation failed: Provider type can’t be blank") + .to raise_error(ActiveRecord::RecordInvalid, "Validation failed: Provider type #{I18n.t("validations.organisation.provider_type_missing")}") end context "with data protection confirmations" do