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.28 test/timezone/test_mathn_compatibility.rb
timezone-1.3.27 test/timezone/test_mathn_compatibility.rb
timezone-1.3.26 test/timezone/test_mathn_compatibility.rb
timezone-1.3.25 test/timezone/test_mathn_compatibility.rb
timezone-1.3.24 test/timezone/test_mathn_compatibility.rb
timezone-1.3.23 test/timezone/test_mathn_compatibility.rb
timezone-1.3.22 test/timezone/test_mathn_compatibility.rb
timezone-1.3.21 test/timezone/test_mathn_compatibility.rb
timezone-1.3.20 test/timezone/test_mathn_compatibility.rb
timezone-1.3.19 test/timezone/test_mathn_compatibility.rb
timezone-1.3.18 test/timezone/test_mathn_compatibility.rb
timezone-1.3.17 test/timezone/test_mathn_compatibility.rb
timezone-1.3.16 test/timezone/test_mathn_compatibility.rb
timezone-1.3.15 test/timezone/test_mathn_compatibility.rb
timezone-1.3.14 test/timezone/test_mathn_compatibility.rb
timezone-1.3.13 test/timezone/test_mathn_compatibility.rb
timezone-1.3.12 test/timezone/test_mathn_compatibility.rb
timezone-1.3.11 test/timezone/test_mathn_compatibility.rb
timezone-1.3.10 test/timezone/test_mathn_compatibility.rb
timezone-1.3.9 test/timezone/test_mathn_compatibility.rb