Sha256: 2333359d4a6858d559b0414340b4e8d78816cd6da0dfc4f49b552ef3008373d8
Contents?: true
Size: 490 Bytes
Versions: 4
Compression:
Stored size: 490 Bytes
Contents
# frozen_string_literal: true require "cases/helper" require "models/task" module ActiveRecord module Type class DateTimeTest < ActiveRecord::TestCase def test_datetime_seconds_precision_applied_to_timestamp skip "This test is invalid if subsecond precision isn't supported" unless supports_datetime_with_precision? p = Task.create!(starting: ::Time.now) assert_equal p.starting.usec, p.reload.starting.usec end end end end
Version data entries
4 entries across 4 versions & 1 rubygems