agenda-libre-ruby/test/models/region_test.rb
2020-04-03 14:43:21 +02:00

18 lines
504 B
Ruby

require 'test_helper'
# Mostly a data holder model, to maintain coutry > region data
class RegionTest < ActiveSupport::TestCase
test 'proper timezone' do
assert regions(:region_one).tzid.present?
assert_equal 'Europe/Paris', regions(:region_one).tzid
end
test 'check québec timezone is local timezone' do
assert_equal Time.now.zone, regions(:region_quebec).tzid
end
test 'check other timezone is local timezone' do
assert_equal 'CEST', regions(:region_other).tzid
end
end