Skip to content

Commit 3a6ad31

Browse files
authored
Merge pull request SAML-Toolkits#341 from wbajzek/master
fix spelling of "formatted"
2 parents ac4575e + 193e0b1 commit 3a6ad31

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

lib/onelogin/ruby-saml/settings.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,9 +136,9 @@ def get_sp_cert
136136
#
137137
def get_sp_key
138138
return nil if private_key.nil? || private_key.empty?
139-
140-
formated_private_key = OneLogin::RubySaml::Utils.format_private_key(private_key)
141-
OpenSSL::PKey::RSA.new(formated_private_key)
139+
140+
formatted_private_key = OneLogin::RubySaml::Utils.format_private_key(private_key)
141+
OpenSSL::PKey::RSA.new(formatted_private_key)
142142
end
143143

144144
private

test/response_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -990,11 +990,11 @@ class RubySamlTest < Minitest::Test
990990

991991
document = XMLSecurity::Document.new(xml)
992992

993-
formated_cert = OneLogin::RubySaml::Utils.format_cert(ruby_saml_cert_text)
994-
cert = OpenSSL::X509::Certificate.new(formated_cert)
993+
formatted_cert = OneLogin::RubySaml::Utils.format_cert(ruby_saml_cert_text)
994+
cert = OpenSSL::X509::Certificate.new(formatted_cert)
995995

996-
formated_private_key = OneLogin::RubySaml::Utils.format_private_key(ruby_saml_key_text)
997-
private_key = OpenSSL::PKey::RSA.new(formated_private_key)
996+
formatted_private_key = OneLogin::RubySaml::Utils.format_private_key(ruby_saml_key_text)
997+
private_key = OpenSSL::PKey::RSA.new(formatted_private_key)
998998
document.sign_document(private_key, cert)
999999

10001000
signed_response = OneLogin::RubySaml::Response.new(document.to_s)

0 commit comments

Comments
 (0)