Sha256: c85e4b75e59dea88162da18fd3bc1a9062914c5b73c718af7f2cb6583daf856b

Contents?: true

Size: 367 Bytes

Versions: 30

Compression:

Stored size: 367 Bytes

Contents

# frozen_string_literal: true

require 'timezone'
require 'minitest/autorun'

begin
  require 'mathn'

  class TestTimezone < ::Minitest::Test
    parallelize_me!

    def test_lookup_mathn_compatibility
      Timezone['America/Regina'].utc_offset
    end
  end
rescue LoadError => e
  raise e unless e.path == 'mathn'
  # Ruby 2.5 doesn't have `mathn` in Stdlib
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
timezone-1.3.8 test/timezone/test_mathn_compatibility.rb
timezone-1.3.7 test/timezone/test_mathn_compatibility.rb
timezone-1.3.6 test/timezone/test_mathn_compatibility.rb
timezone-1.3.5 test/timezone/test_mathn_compatibility.rb
timezone-1.3.4 test/timezone/test_mathn_compatibility.rb
timezone-1.3.3 test/timezone/test_mathn_compatibility.rb
timezone-1.3.2 test/timezone/test_mathn_compatibility.rb
timezone-1.3.1 test/timezone/test_mathn_compatibility.rb
timezone-1.3.0 test/timezone/test_mathn_compatibility.rb
timezone-1.2.12 test/timezone/test_mathn_compatibility.rb