lib/rails/auth/x509/certificate.rb in rails-auth-0.2.0 vs lib/rails/auth/x509/certificate.rb in rails-auth-0.3.0
- old
+ new
@@ -7,10 +7,10 @@
class Certificate
attr_reader :certificate
def initialize(certificate)
unless certificate.is_a?(OpenSSL::X509::Certificate)
- fail TypeError, "expecting OpenSSL::X509::Certificate, got #{certificate.class}"
+ raise TypeError, "expecting OpenSSL::X509::Certificate, got #{certificate.class}"
end
@certificate = certificate.freeze
@subject = {}