mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-25 19:48:48 +01:00
Fix setup for calendar controller test
Ensure that the expected todos are actually due in the same month
This commit is contained in:
parent
25f80bcf8b
commit
d541fc24d7
1 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue