Sha256: e3b26eddae23cacd70b95eb5bf775846cfa85f3552bbbedc66f122cfa6b73f25
Contents?: true
Size: 801 Bytes
Versions: 21
Compression:
Stored size: 801 Bytes
Contents
$:.unshift File.join(File.dirname(__FILE__), "..", "lib") require 'test/unit' require 'tzinfo/info_timezone' require 'tzinfo/timezone_info' include TZInfo class TCInfoTimezone < Test::Unit::TestCase class TestInfoTimezone < InfoTimezone attr_reader :setup_info protected def setup(info) super(info) @setup_info = info end end def test_identifier tz = InfoTimezone.new(TimezoneInfo.new('Test/Identifier')) assert_equal('Test/Identifier', tz.identifier) end def test_info i = TimezoneInfo.new('Test/Identifier') tz = InfoTimezone.new(i) assert_same(i, tz.send(:info)) end def test_setup i = TimezoneInfo.new('Test/Identifier') tz = TestInfoTimezone.new(i) assert_same(i, tz.setup_info) end end
Version data entries
21 entries across 21 versions & 1 rubygems