aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models
diff options
context:
space:
mode:
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/referential_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/models/referential_spec.rb b/spec/models/referential_spec.rb
index 6d699f759..5758d8235 100644
--- a/spec/models/referential_spec.rb
+++ b/spec/models/referential_spec.rb
@@ -9,6 +9,16 @@ describe Referential, :type => :model do
subject { build_stubbed(:referential) }
it { should validate_presence_of(:objectid_format) }
+
+ it 'should authorize slug with nummerical value' do
+ subject.slug = '2018-hiver-jezequel-mm-lyon-nice'
+ expect(subject).to be_valid
+ end
+
+ it 'should authorize slug with accents' do
+ subject.slug = 'écolê-été-hiver-lyon-nice'
+ expect(subject).to be_valid
+ end
end
context ".referential_ids_in_periode" do