Browse Source

Model test

pull/677/head
baarkerlounger 3 years ago
parent
commit
92e5f5be83
  1. 2
      spec/models/organisation_spec.rb

2
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

Loading…
Cancel
Save