I'm not sure this is testing what you're expecting it to test. I think this just checks that the class & id doesn't change (ActiveRecord::Base#==).