Sha256: 51a9bb243ae9ffff234b4bb0053ffe02ec8e1e83291be21d16361dea82121eeb
Contents?: true
Size: 719 Bytes
Versions: 7
Compression:
Stored size: 719 Bytes
Contents
require 'timezone/loader' require 'minitest/autorun' module Timezone class TestLoader < ::Minitest::Test parallelize_me! def test_load assert_equal( [[1_435_708_800, 'GMT', false, 0]], Loader.load('GMT') ) assert_raises ::Timezone::Error::InvalidZone do Loader.load('foo/bar') end end def test_names assert Loader.names.include?('GMT') assert Loader.names.include?('Europe/Paris') refute Loader.names.include?('foo/bar') end def test_valid? assert Loader.valid?('America/Los_Angeles') assert Loader.valid?('Europe/Paris') refute Loader.valid?('foo/bar') refute Loader.valid?(nil) end end end
Version data entries
7 entries across 7 versions & 1 rubygems