mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-28 11:46:10 +01:00
selenium needs declaraions in recurring_todo.yml fixture
This commit is contained in:
parent
374adbbd89
commit
932639ee6a
1 changed files with 24 additions and 0 deletions
24
test/fixtures/recurring_todos.yml
vendored
24
test/fixtures/recurring_todos.yml
vendored
|
|
@ -1,3 +1,27 @@
|
|||
<%
|
||||
|
||||
def today
|
||||
Time.zone.now.beginning_of_day.to_s(:db)
|
||||
end
|
||||
|
||||
def next_week
|
||||
1.week.from_now.beginning_of_day.to_s(:db)
|
||||
end
|
||||
|
||||
def last_week
|
||||
1.week.ago.beginning_of_day.to_s(:db)
|
||||
end
|
||||
|
||||
def two_weeks_ago
|
||||
2.weeks.ago.beginning_of_day.to_s(:db)
|
||||
end
|
||||
|
||||
def two_weeks_hence
|
||||
2.weeks.from_now.beginning_of_day.to_s(:db)
|
||||
end
|
||||
|
||||
%>
|
||||
|
||||
1:
|
||||
id: 1
|
||||
user_id: 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue