diff options
| author | Xinhui | 2017-11-22 16:32:32 +0100 |
|---|---|---|
| committer | Xinhui | 2017-11-28 12:21:33 +0100 |
| commit | 86fd42a9136cb6eef87ecec3d0b2bcf579667798 (patch) | |
| tree | a3ef5d442d91ea9cbf6608f2e9111691e8bd4567 /spec/models/calendar_spec.rb | |
| parent | bc7888297ae545ae3c453c5c9481d22b37a0dad4 (diff) | |
| download | chouette-core-86fd42a9136cb6eef87ecec3d0b2bcf579667798.tar.bz2 | |
Add has_paper_trail on models
Diffstat (limited to 'spec/models/calendar_spec.rb')
| -rw-r--r-- | spec/models/calendar_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/calendar_spec.rb b/spec/models/calendar_spec.rb index f5020ebf8..e71c2b081 100644 --- a/spec/models/calendar_spec.rb +++ b/spec/models/calendar_spec.rb @@ -6,6 +6,7 @@ RSpec.describe Calendar, :type => :model do 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 let(:calendar) { create(:calendar, date_ranges: [Date.today...(Date.today + 1.month)]) } @@ -29,7 +30,6 @@ RSpec.describe Calendar, :type => :model do end end - describe 'before_validation' do let(:calendar) { create(:calendar, date_ranges: []) } |
