Fix loops testing for rspec 2.x