aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/organisation_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models/organisation_spec.rb')
-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