lib/generators/dry_crud/templates/test/custom_assertions.rb
def mu_pp(obj)
    if obj.is_a?(ActiveRecord::Base)
      obj.to_s
    else
      super
    end
  end
# The method used to by Test::Unit to format arguments in
# #build_message. Prints ActiveRecord objects in a simpler format.
# Only works for Ruby 1.9
The method used to by Test::Unit to format arguments in
build_message. Prints ActiveRecord objects in a simpler format.
Only works for Ruby 1.9
The method used to by Test :: Unit to format arguments in build_message . Prints ActiveRecord objects in a simpler format . Only works for Ruby 1 . 9
def mu_pp(obj)
    if obj.is_a?(ActiveRecord::Base)
      obj.to_s
    else
      super
    end
  end
def mu_pp ( obj ) if obj . is_a? ( ActiveRecord :: Base ) obj . to_s else super end end
The method used to by Test::Unit to format arguments in
build_message.
The method used to by Test :: Unit to format arguments in build_message .
obj