mirror of
https://github.com/internetee/registry.git
synced 2025-05-16 17:37:17 +02:00
Converted to use Rails Time.zone only to honor app time zone
This commit is contained in:
parent
a42136268f
commit
e1041da50f
16 changed files with 34 additions and 31 deletions
|
@ -62,7 +62,7 @@ describe Keyrelay do
|
|||
end
|
||||
|
||||
it 'is in expired status' do
|
||||
kr = Fabricate(:keyrelay, pa_date: DateTime.now - 2.weeks)
|
||||
kr = Fabricate(:keyrelay, pa_date: Time.zone.now - 2.weeks)
|
||||
expect(kr.status).to eq('expired')
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue