hamming with rspec