Commit af77815

mo <mo.khan@gmail.com>
2018-03-04 20:32:19
remove unnecessary gsub.
1 parent 127e883
Changed files (1)
spec
saml
kit
spec/saml/kit/cli/commands/certificate_spec.rb
@@ -38,7 +38,7 @@ RSpec.describe Saml::Kit::Cli::Commands::Certificate do
 
   describe "dump" do
     let(:command) { "certificate dump '#{base64_certificate}'" }
-    let(:base64_certificate) { x509.to_pem.gsub(/-----BEGIN CERTIFICATE-----\n/, '').gsub(/\n-----END CERTIFICATE-----\n/, '').gsub(/\n/, '') }
+    let(:base64_certificate) { x509.to_pem }
     let(:x509) do
       certificate = OpenSSL::X509::Certificate.new
       key = OpenSSL::PKey::RSA.new(2048)