Sha256: ffb0d9b0db59f30f7674479c85464b146eb80b2500fdfdaef677b243de01833c

Contents?: true

Size: 434 Bytes

Versions: 32

Compression:

Stored size: 434 Bytes

Contents

# frozen_string_literal: true

require 'timezone/nil_zone'
require 'minitest/autorun'

class TestNilZone < ::Minitest::Test
  parallelize_me!

  def setup
    @zone = Timezone::NilZone.new
  end

  def test_name
    assert_nil @zone.name
  end

  def test_to_s
    assert_equal 'NilZone', @zone.to_s
  end

  def test_inspect
    assert '#<Timezone::NilZone>', @zone.inspect
  end

  def test_valid?
    refute @zone.valid?
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
timezone-1.3.27 test/timezone/test_nil_zone.rb
timezone-1.3.26 test/timezone/test_nil_zone.rb
timezone-1.3.25 test/timezone/test_nil_zone.rb
timezone-1.3.24 test/timezone/test_nil_zone.rb
timezone-1.3.23 test/timezone/test_nil_zone.rb
timezone-1.3.22 test/timezone/test_nil_zone.rb
timezone-1.3.21 test/timezone/test_nil_zone.rb
timezone-1.3.20 test/timezone/test_nil_zone.rb
timezone-1.3.19 test/timezone/test_nil_zone.rb
timezone-1.3.18 test/timezone/test_nil_zone.rb
timezone-1.3.17 test/timezone/test_nil_zone.rb
timezone-1.3.16 test/timezone/test_nil_zone.rb
timezone-1.3.15 test/timezone/test_nil_zone.rb
timezone-1.3.14 test/timezone/test_nil_zone.rb
timezone-1.3.13 test/timezone/test_nil_zone.rb
timezone-1.3.12 test/timezone/test_nil_zone.rb
timezone-1.3.11 test/timezone/test_nil_zone.rb
timezone-1.3.10 test/timezone/test_nil_zone.rb
timezone-1.3.9 test/timezone/test_nil_zone.rb
timezone-1.3.8 test/timezone/test_nil_zone.rb