diff options
| author | Zog | 2018-03-15 16:38:20 +0100 |
|---|---|---|
| committer | Johan Van Ryseghem | 2018-03-27 09:35:09 +0200 |
| commit | 1386e3c2d525b61bf0e6a7ace9ed755bff9eb998 (patch) | |
| tree | eaf06fcc8dcdaa308a6bb316b380f62b4887a34f /spec | |
| parent | 7e56064ec6dbb60d00453d39680c2fdd9a462011 (diff) | |
| download | chouette-core-1386e3c2d525b61bf0e6a7ace9ed755bff9eb998.tar.bz2 | |
Refs #6201; Remove short_name from calendars
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/factories/calendars.rb | 2 | ||||
| -rw-r--r-- | spec/models/calendar_spec.rb | 2 |
2 files changed, 0 insertions, 4 deletions
diff --git a/spec/factories/calendars.rb b/spec/factories/calendars.rb index d9fd242d1..d78f230c6 100644 --- a/spec/factories/calendars.rb +++ b/spec/factories/calendars.rb @@ -1,7 +1,6 @@ FactoryGirl.define do factory :calendar do sequence(:name) { |n| "Calendar #{n}" } - sequence(:short_name) { |n| "Cal #{n}" } date_ranges { [generate(:date_range)] } sequence(:dates) { |n| [ Date.yesterday - n, Date.yesterday - 2*n ] } shared false @@ -14,4 +13,3 @@ FactoryGirl.define do date..(date+1) end end - diff --git a/spec/models/calendar_spec.rb b/spec/models/calendar_spec.rb index a5c0a7471..09ac0e416 100644 --- a/spec/models/calendar_spec.rb +++ b/spec/models/calendar_spec.rb @@ -4,8 +4,6 @@ RSpec.describe Calendar, :type => :model do it { is_expected.to validate_presence_of(:organisation) } it { is_expected.to validate_presence_of(:name) } - it { is_expected.to validate_presence_of(:short_name) } - it { is_expected.to validate_uniqueness_of(:short_name) } it { is_expected.to be_versioned } describe '#to_time_table' do |
