From d2b567689cd113d806d8b3832658e81e07f0c01f Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Wed, 20 Dec 2023 15:26:31 +0000 Subject: Adds valid test to org model spec --- spec/models/organisation_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/models/organisation_spec.rb b/spec/models/organisation_spec.rb index e21c40c..1aad0a0 100644 --- a/spec/models/organisation_spec.rb +++ b/spec/models/organisation_spec.rb @@ -14,5 +14,10 @@ RSpec.describe Organisation, type: :model do subject.name = "a" * 26 expect(subject).to_not be_valid end + + it "is valid with a name shorter than 25 characters" do + subject.name = "Crifford Ltd" + expect(subject).to be_valid + end end end -- cgit v1.2.3