Implement rspec function it_raises

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

Change-Id: Ie1c83e09952fed1f114fc07d9944f89e94c413f1
(cherry picked from commit 9ec5122f6d9c1168f9edb077b629d0722ee6c86c)