class RSpec::Support::ObjectFormatter::DateTimeInspector

def self.can_inspect?(object)

def self.can_inspect?(object)
  defined?(DateTime) && DateTime === object
end

def inspect

defined use a custom format string that includes more time precision.
ActiveSupport sometimes overrides inspect. If `ActiveSupport` is
def inspect
  if defined?(ActiveSupport)
    object.strftime(FORMAT)
  else
    object.inspect
  end
end