Commit a508d5443abe0ee3782f7c80d085f6cc4af98e1d

Authored by Daniela Feitosa
1 parent a8a8780b

fix: failing test on first and last day of a month

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
test/unit/profile_test.rb
... ... @@ -1461,7 +1461,7 @@ class ProfileTest < ActiveSupport::TestCase
1461 1461 should 'list events by month' do
1462 1462 profile = fast_create(Profile)
1463 1463  
1464   - today = Date.today
  1464 + today = Date.new(2014, 03, 2)
1465 1465 yesterday_event = Event.new(:name => 'Joao Birthday', :start_date => today - 1.day)
1466 1466 today_event = Event.new(:name => 'Ze Birthday', :start_date => today)
1467 1467 tomorrow_event = Event.new(:name => 'Mane Birthday', :start_date => today + 1.day)
... ...