mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-22 22:06:45 +00:00
Time only values are zone aware from AR 5.0
This commit is contained in:
parent
38899712c5
commit
4582c96c42
@ -156,7 +156,7 @@ RSpec.describe ValidatesTimeliness, 'ActiveRecord' do
|
|||||||
record.birth_time = '12:30'
|
record.birth_time = '12:30'
|
||||||
|
|
||||||
expect(record.birth_time).to be_kind_of(Time)
|
expect(record.birth_time).to be_kind_of(Time)
|
||||||
expect(record.birth_time).to eq Time.utc(2000, 1, 1, 12, 30)
|
expect(record.birth_time).to eq Time.zone.local(2000, 1, 1, 12, 30)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user