add compatibility with rspec 1.0.1+

Handle the change in raise exception classes