[#42225233] Removed unnecessary defined hash
[#42225233] Refactoring the spec

I'm using the 'zip' function to iterate over 2 array,
instead of '(0..9).map do |i| ...'