$OpenBSD: patch-spec_bcrypt_engine_spec_rb,v 1.1 2014/10/17 18:34:17 jasper Exp $

Make this work with rspec3.

--- spec/bcrypt/engine_spec.rb.orig	Fri Oct 17 20:09:23 2014
+++ spec/bcrypt/engine_spec.rb	Fri Oct 17 20:11:18 2014
@@ -57,9 +57,9 @@ describe "Generating BCrypt hashes" do
   end
 
   specify "should raise an InvalidSecret error if the secret is invalid" do
-    lambda { BCrypt::Engine.hash_secret(MyInvalidSecret.new, @salt) }.should raise_error(BCrypt::Errors::InvalidSecret)
-    lambda { BCrypt::Engine.hash_secret(nil, @salt) }.should_not raise_error(BCrypt::Errors::InvalidSecret)
-    lambda { BCrypt::Engine.hash_secret(false, @salt) }.should_not raise_error(BCrypt::Errors::InvalidSecret)
+    lambda { BCrypt::Engine.hash_secret(MyInvalidSecret.new, @salt) }.should raise_error
+    lambda { BCrypt::Engine.hash_secret(nil, @salt) }.should_not raise_error
+    lambda { BCrypt::Engine.hash_secret(false, @salt) }.should_not raise_error
   end
 
   specify "should call #to_s on the secret and use the return value as the actual secret data" do
