class RSpec::Support::ObjectFormatter::DateTimeInspector
def self.can_inspect?(object)
def self.can_inspect?(object) defined?(DateTime) && DateTime === object end
def inspect
ActiveSupport sometimes overrides inspect. If `ActiveSupport` is
def inspect if defined?(ActiveSupport) object.strftime(FORMAT) else object.inspect end end