Fix lambda call in spec_helper