Sha256: c75596693970feb606380051d2ef5425b7b64164ee683b37b9564aa53c2647df

Contents?: true

Size: 474 Bytes

Versions: 5

Compression:

Stored size: 474 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

5 entries across 5 versions & 1 rubygems

Version Path
ibm_db-5.5.0 test/cases/type/date_time_test.rb
ibm_db-5.4.1 test/cases/type/date_time_test.rb
ibm_db-5.4.0 test/cases/type/date_time_test.rb
ibm_db-5.3.2 test/cases/type/date_time_test.rb
ibm_db-5.3.1 test/cases/type/date_time_test.rb