made rspec option generation code more palatable