Make factories and tests timezone-friendly
This commit is contained in:
parent
4bc783b42c
commit
297447d802
6 changed files with 9 additions and 9 deletions
|
|
@ -16,7 +16,7 @@ feature Conference do
|
|||
|
||||
select('(GMT+01:00) Berlin', from: 'conference[timezone]')
|
||||
|
||||
today = Date.today - 1
|
||||
today = Time.zone.today - 1
|
||||
page
|
||||
.execute_script("$('#conference-start-datepicker').val('" +
|
||||
"#{today.strftime('%d/%m/%Y')}')")
|
||||
|
|
@ -53,7 +53,7 @@ feature Conference do
|
|||
fill_in 'conference_title', with: 'New Con'
|
||||
fill_in 'conference_short_title', with: 'NewCon'
|
||||
|
||||
day = Date.today + 10
|
||||
day = Time.zone.today + 10
|
||||
page
|
||||
.execute_script("$('#conference-start-datepicker').val('" +
|
||||
"#{day.strftime('%d/%m/%Y')}')")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue