aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/models/calendar_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/calendar_spec.rb b/spec/models/calendar_spec.rb
index a3da95aca..1dd3bf81d 100644
--- a/spec/models/calendar_spec.rb
+++ b/spec/models/calendar_spec.rb
@@ -76,7 +76,7 @@ RSpec.describe Calendar, :type => :model do
it 'should validate that end is greather than or equlals to begin' do
expect(period(begin: '2016-11-21', end: '2016-11-22')).to be_valid
- expect(period(begin: '2016-11-21', end: '2016-11-21')).to be_valid
+ expect(period(begin: '2016-11-21', end: '2016-11-21')).to_not be_valid
expect(period(begin: '2016-11-22', end: '2016-11-21')).to_not be_valid
end