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.7 test/timezone/test_nil_zone.rb
timezone-1.3.6 test/timezone/test_nil_zone.rb
timezone-1.3.5 test/timezone/test_nil_zone.rb
timezone-1.3.4 test/timezone/test_nil_zone.rb
timezone-1.3.3 test/timezone/test_nil_zone.rb
timezone-1.3.2 test/timezone/test_nil_zone.rb
timezone-1.3.1 test/timezone/test_nil_zone.rb
timezone-1.3.0 test/timezone/test_nil_zone.rb
timezone-1.2.12 test/timezone/test_nil_zone.rb
timezone-1.2.11 test/timezone/test_nil_zone.rb
timezone-1.2.10 test/timezone/test_nil_zone.rb
timezone-1.2.9 test/timezone/test_nil_zone.rb