mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-17 20:58:09 +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'
|
require_relative '../test_helper'
|
||||||
|
|
||||||
class CalendarControllerTest < ActionController::TestCase
|
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
|
def test_show
|
||||||
login_as(:admin_user)
|
login_as(:admin_user)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue