aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-12-20 15:26:31 +0000
committerMatthew Lemon <y@yulqen.org>2023-12-20 15:26:31 +0000
commitd2b567689cd113d806d8b3832658e81e07f0c01f (patch)
tree9cfc2428fe8c00e8be54df752e5d0dd02f70eb69
parentb0c95c8066fb5753462229882a721f590453661a (diff)
Adds valid test to org model spec
-rw-r--r--spec/models/organisation_spec.rb5
1 files changed, 5 insertions, 0 deletions
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