agenda-libre-ruby/test/models/region_test.rb

18 lines
492 B
Ruby
Raw Normal View History

2013-12-03 21:56:20 +01:00
require 'test_helper'
2017-05-29 22:18:04 +02:00
# Mostly a data holder model, to maintain coutry > region data
2013-12-03 21:56:20 +01:00
class RegionTest < ActiveSupport::TestCase
test 'proper timezone' do
assert regions(:region_one).tzid.present?
assert regions(:region_one).tzid == 'Europe/Paris'
end
test 'check québec timezone is local timezone' do
assert regions(:region_quebec).tzid == Time.now.zone
end
test 'check other timezone is local timezone' do
assert regions(:region_other).tzid == 'CEST'
end
2013-12-03 21:56:20 +01:00
end