aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models/organisation_spec.rb
diff options
context:
space:
mode:
authorMarc Florisson2015-02-03 12:26:37 +0100
committerMarc Florisson2015-02-03 12:26:37 +0100
commita98cf1bdae71922512abb284429c96777d01db18 (patch)
treee9f76cfa66b50e48b9061a1d3b3e34022e9e87a2 /spec/models/organisation_spec.rb
parent04148815395986714ac6c1f98abcc23744cb97eb (diff)
downloadchouette-core-a98cf1bdae71922512abb284429c96777d01db18.tar.bz2
first refactor to add rule parameter set to organisation
Diffstat (limited to 'spec/models/organisation_spec.rb')
-rw-r--r--spec/models/organisation_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/models/organisation_spec.rb b/spec/models/organisation_spec.rb
new file mode 100644
index 000000000..6baf13c46
--- /dev/null
+++ b/spec/models/organisation_spec.rb
@@ -0,0 +1,7 @@
+require 'spec_helper'
+
+describe Organisation do
+
+ it { should validate_presence_of(:name) }
+ it { should validate_uniqueness_of(:name) }
+end