Sha256: b8c46a0f8e1c4af1377c489acd19da7518b9f3a10d9d5c4b1c4897edb69348ae

Contents?: true

Size: 729 Bytes

Versions: 77

Compression:

Stored size: 729 Bytes

Contents

require File.join(File.expand_path(File.dirname(__FILE__)), 'test_utils')

include TZInfo

class TCInfoTimezone < Minitest::Test
  
  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

77 entries across 73 versions & 27 rubygems

Version Path
mumukit-content-type-1.12.1 vendor/bundle/ruby/2.7.0/gems/tzinfo-1.2.11/test/tc_info_timezone.rb
mumukit-content-type-1.12.0 vendor/bundle/ruby/2.7.0/gems/tzinfo-1.2.11/test/tc_info_timezone.rb
tzinfo-1.2.11 test/tc_info_timezone.rb
tzinfo-1.2.10 test/tc_info_timezone.rb
mumukit-content-type-1.11.1 vendor/bundle/ruby/2.6.0/gems/tzinfo-1.2.9/test/tc_info_timezone.rb
tzinfo-1.2.9 test/tc_info_timezone.rb
tzinfo-1.2.8 test/tc_info_timezone.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/tzinfo-1.2.6/test/tc_info_timezone.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/tzinfo-1.2.7/test/tc_info_timezone.rb
files.com-1.0.55 docs/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_info_timezone.rb
tzinfo-1.2.7 test/tc_info_timezone.rb
argon-1.3.1 vendor/bundle/ruby/2.7.0/gems/tzinfo-1.2.6/test/tc_info_timezone.rb
symbolic_enum-1.1.5 vendor/bundle/ruby/2.7.0/gems/tzinfo-1.2.6/test/tc_info_timezone.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/tzinfo-1.2.6/test/tc_info_timezone.rb
tzinfo-1.2.6 test/tc_info_timezone.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/tzinfo-1.2.5/test/tc_info_timezone.rb
zuora_connect_ui-0.9.2 vendor/ruby/2.6.0/gems/tzinfo-1.2.5/test/tc_info_timezone.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_info_timezone.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/tzinfo-1.2.5/test/tc_info_timezone.rb
zuora_connect_ui-0.9.1 vendor/ruby/2.6.0/gems/tzinfo-1.2.5/test/tc_info_timezone.rb