Fix setup for calendar controller test

Ensure that the expected todos are actually due in the same month
This commit is contained in:
Brett A. Rogers 2013-07-19 15:43:56 -05:00 committed by Reinier Balt
parent 25f80bcf8b
commit d541fc24d7

View file

@ -1,6 +1,11 @@
require_relative '../test_helper'
class CalendarControllerTest < ActionController::TestCase
def setup
todos(:call_bill).update_attribute(:due, Time.zone.now.end_of_month.beginning_of_day)
todos(:call_dino_ext).update_attribute(:due, Time.zone.now.end_of_month.beginning_of_day)
end
def test_show
login_as(:admin_user)