aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/type/date_time_test.rb
blob: 62d3405be16e19217f6294ce11ab894dd541f3bc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
require "cases/helper"
require "models/task"

module ActiveRecord
  module Type
    class IntegerTest < ActiveRecord::TestCase
      def test_datetime_seconds_precision_applied_to_timestamp
        p = Task.create!(starting: ::Time.now)
        assert_equal p.starting.usec, p.reload.starting.usec
      end
    end
  end
end