A calendar management project, for events and activities related to communities fighting for freedoms.
This can be related to software, art, data, hardware, content, commons, internet.
https://www.agendadulibre.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
503 B

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 'CET', regions(:region_other).tzid
end
end