From a508d5443abe0ee3782f7c80d085f6cc4af98e1d Mon Sep 17 00:00:00 2001 From: Daniela Soares Feitosa Date: Sat, 1 Mar 2014 15:32:57 +0000 Subject: [PATCH] fix: failing test on first and last day of a month --- test/unit/profile_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/profile_test.rb b/test/unit/profile_test.rb index 2cdba8b..ba1c806 100644 --- a/test/unit/profile_test.rb +++ b/test/unit/profile_test.rb @@ -1461,7 +1461,7 @@ class ProfileTest < ActiveSupport::TestCase should 'list events by month' do profile = fast_create(Profile) - today = Date.today + today = Date.new(2014, 03, 2) yesterday_event = Event.new(:name => 'Joao Birthday', :start_date => today - 1.day) today_event = Event.new(:name => 'Ze Birthday', :start_date => today) tomorrow_event = Event.new(:name => 'Mane Birthday', :start_date => today + 1.day) -- libgit2 0.21.2