diff options
| author | Zog | 2018-02-05 09:50:46 +0100 |
|---|---|---|
| committer | Zog | 2018-02-09 12:02:24 +0100 |
| commit | 8f8ab427914c39fdfb0648978d4fdff25ccfdc63 (patch) | |
| tree | 0bf616f4c4a97943e7fa689ae736dbb15e506147 /spec/models | |
| parent | 23882d8e525a63d15b4dca1731b2184984621f52 (diff) | |
| download | chouette-core-8f8ab427914c39fdfb0648978d4fdff25ccfdc63.tar.bz2 | |
Refs #5824; Add specs (and fix some)5824-autocomplete-stop-areas-scope
Diffstat (limited to 'spec/models')
| -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 3cffd0f8a..a5c0a7471 100644 --- a/spec/models/calendar_spec.rb +++ b/spec/models/calendar_spec.rb @@ -36,7 +36,7 @@ RSpec.describe Calendar, :type => :model do end it 'validates that dates and date_ranges do not overlap but allow for days not in the list' do - expect(build(:calendar, dates: [Date.today.beginning_of_week], date_ranges: [Date.today.beginning_of_week..Date.today], int_day_types: Calendar::THURSDAY)).to be_valid + expect(build(:calendar, dates: [Date.today.beginning_of_week - 1.week], date_ranges: [(Date.today.beginning_of_week - 1.week)..Date.today], int_day_types: Calendar::THURSDAY)).to be_valid end it 'validates that there are no duplicates in dates' do |
