Working rspec test with array of sample numbers