Fix raise error when the expectation target is an error instance.

This closes #232

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Change error instance implementation to match == instances, or classes

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Add some specs for fixed instance raise_error behaviour

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Remove the now unused expected_error_class method in raise_error

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Use === for type comparison instead of is_a?

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Interpolate from exception instances in raise_error spec

Signed-off-by: Sam Phippen <samphippen@googlemail.com>
Merge pull request #236 from samphippen/fix-raise-error-with-instances

Fix raise error when the expectation target is an error instance.