Style nit pick, could you change it to
```
expect {
  Puppet_server_addressValidator.validate(server)
}.to raise_error("The port '%s' is not a valid puppet master port" % port)
```