Rspec file working with array