I should mention that using assert_equal is much nicer, as when it fails, it has enough context to tell you why they are different.