Update some rspec methods that warn of deprecations.

When I ran the specs I got a few deprecation notices: `stub!` (an alias for `stub`) is being removed, `mock` is being removed in favor of existing `double`, and `raise_error()`/`raise_exception()` will not take specific errors when it's used in negative expectations.