From d541fc24d7d35a88b05feae33faeea2be6c9fcaf Mon Sep 17 00:00:00 2001 From: "Brett A. Rogers" Date: Fri, 19 Jul 2013 15:43:56 -0500 Subject: [PATCH] Fix setup for calendar controller test Ensure that the expected todos are actually due in the same month --- test/controllers/calendar_controller_test.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/controllers/calendar_controller_test.rb b/test/controllers/calendar_controller_test.rb index 4957b908..19a871b1 100644 --- a/test/controllers/calendar_controller_test.rb +++ b/test/controllers/calendar_controller_test.rb @@ -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)