# Error on test case

**URL:** <https://www.ruby-forum.com/t/error-on-test-case/192062>\
**Category:** Ruby\
**Created:** [July 23, 2010, 8:34am UTC](https://www.ruby-forum.com/t/error-on-test-case/192062 "2010-07-23T08:34:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ngng](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/a88e4f/32.png) [@ngng](https://www.ruby-forum.com/u/ngng)\
**Post date:** [July 23, 2010, 8:34am UTC](https://www.ruby-forum.com/t/error-on-test-case/192062/1 "2010-07-23T08:34:09Z")

</div>

On some of my test cases (that almost certainly fail anyway right now),  
I’m  
getting the following error message:

NameError: uninitialized constant  
Test::Unit::Assertions::AssertionMessage::PP

Has anyone else seen this one? They’re very straightforward test cases  
using assert\_equal. Google isn’t revealing it’s secrets to me, so I’m  
hoping someone here knows what to do for this message… Thanks in  
advance!

-Jonathan N.

---

<div class="post-metadata">

**Author:** ![ngng](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/a88e4f/32.png) [@ngng](https://www.ruby-forum.com/u/ngng)\
**Post date:** [July 23, 2010, 8:44am UTC](https://www.ruby-forum.com/t/error-on-test-case/192062/2 "2010-07-23T08:44:06Z")

</div>

> NameError: uninitialized constant  
> Test::Unit::Assertions::AssertionMessage::PP

Never mind, putting require ‘pp’ at the top of the test case file fixed  
this. Weird, but ok.

-Jonathan N.
