You could have also done "assert_equal expected, hash".