Sha256: 02e64992c919651488cf2ccbdebe3ef0f9dfbc78e138ac6b2cd04f8186d67f35

Contents?: true

Size: 439 Bytes

Versions: 8

Compression:

Stored size: 439 Bytes

Contents

require "cases/helper"
require "models/task"

module ActiveRecord
  module Type
    class IntegerTest < ActiveRecord::TestCase
      def test_datetime_seconds_precision_applied_to_timestamp
        skip "This test is invalid if subsecond precision isn't supported" unless subsecond_precision_supported?
        p = Task.create!(starting: ::Time.now)
        assert_equal p.starting.usec, p.reload.starting.usec
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ibm_db-5.2.0 test/cases/type/date_time_test.rb
ibm_db-5.1.0 test/cases/type/date_time_test.rb
ibm_db-5.0.5 test/cases/type/date_time_test.rb
ibm_db-5.0.4 test/cases/type/date_time_test.rb
ibm_db-5.0.3 test/cases/type/date_time_test.rb
ibm_db-5.0.2 test/cases/type/date_time_test.rb
ibm_db-4.0.0-x86-mingw32 test/cases/type/date_time_test.rb
ibm_db-4.0.0 test/cases/type/date_time_test.rb