Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Now that starts_at and ends_at are DateTimes we need to build the eve…

…nts in the tests with datetimes. Otherwise we could see some troubles with timezones and edge values (events at 12AM belonging to the previous day)

Conflicts:

	spec/requests/refinery/calendar/events/index_date_filters_spec.rb
	spec/requests/refinery/calendar/events/mini_calendar_spec.rb
  • Loading branch information...
commit 11c4d095b7ff620be0a65dd416ee467ce0f80341 1 parent b878275
@brenes brenes authored brenes committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  spec/models/refinery/calendar/event_spec.rb
View
3  spec/models/refinery/calendar/event_spec.rb
@@ -36,6 +36,7 @@ module Calendar
before :each do
FactoryGirl.create(:event, starts_at: Date.tomorrow - 2.hours)
+ FactoryGirl.create(:event, starts_at: Date.tomorrow.beginning_of_day)
FactoryGirl.create(:event, starts_at: Date.tomorrow + 2.hours)
FactoryGirl.create(:event, starts_at: Date.tomorrow + 6.hours)
FactoryGirl.create(:event, starts_at: Date.tomorrow + 12.hours)
@@ -46,7 +47,7 @@ module Calendar
subject { Event.on_day(Date.tomorrow) }
- its(:length) { should == 4 }
+ its(:length) { should == 5 }
end
Please sign in to comment.
Something went wrong with that request. Please try again.