Implement rspec function it_raises

On some puppet modules, a it_raises helper is provided. This commit
implements it for puppet-swift.

Change-Id: Id8724823b912f201cc137e23f991d8e05acdcbcc