rspec specification for a perfect number exercise