Sha256: 75869499e1c3b413163842641a8b5825bd0a958f79dab99eb67ffb0394fb9e05

Contents?: true

Size: 360 Bytes

Versions: 9

Compression:

Stored size: 360 Bytes

Contents

require 'test_helper'

class Time::ConversionsTest < Minitest::Test
  test 'to_time should return same object' do
    yaml  = '2015-08-06 00:00:00 Z'

    time  = yaml.to_time
    time2 = time.to_time

    assert Time === time, 'time was not a Time'
    assert Time === time2, 'time2 was not a Time'

    assert_equal time.object_id, time2.object_id
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ndr_support-4.2.0 test/time/conversions_test.rb
ndr_support-4.1.2 test/time/conversions_test.rb
ndr_support-4.1.1 test/time/conversions_test.rb
ndr_support-4.0.1 test/time/conversions_test.rb
ndr_support-4.0.0 test/time/conversions_test.rb
ndr_support-3.3.0 test/time/conversions_test.rb
ndr_support-3.2.1 test/time/conversions_test.rb
ndr_support-3.2.0 test/time/conversions_test.rb
ndr_support-3.1.1 test/time/conversions_test.rb