Commit ee6955d

mokha <mo@mokhan.ca>
2018-11-21 01:47:58
fix linter errors.
1 parent 9e25437
Changed files (2)
lib
xml
kit
spec
lib/xml/kit/crypto/oaep_cipher.rb
@@ -4,7 +4,7 @@ module Xml
   module Kit
     module Crypto
       class OaepCipher
-        ALGORITHM = "#{::Xml::Kit::Namespaces::XMLENC}rsa-oaep-mgf1p"
+        ALGORITHM = "#{::Xml::Kit::Namespaces::XMLENC}rsa-oaep-mgf1p".freeze
         ALGORITHMS = {
           ALGORITHM => true
         }.freeze
spec/xml/kit/certificate_spec.rb
@@ -114,7 +114,7 @@ RSpec.describe Xml::Kit::Certificate do
 
       specify { expect(subject).to be_active(Time.now) }
 
-      context "when reading an x509 pem" do
+      context 'when reading an x509 pem' do
         subject { described_class.new(certificate.to_pem, use: :signing) }
 
         specify { expect(subject).to be_active(Time.now) }
@@ -131,7 +131,7 @@ RSpec.describe Xml::Kit::Certificate do
 
       specify { expect(subject).not_to be_active(Time.now) }
 
-      context "when reading an x509 pem" do
+      context 'when reading an x509 pem' do
         subject { described_class.new(certificate.to_pem, use: :signing) }
 
         specify { expect(subject).not_to be_active(Time.now) }
@@ -148,7 +148,7 @@ RSpec.describe Xml::Kit::Certificate do
 
       specify { expect(subject).not_to be_active(Time.now) }
 
-      context "when reading an x509 pem" do
+      context 'when reading an x509 pem' do
         subject { described_class.new(certificate.to_pem, use: :signing) }
 
         specify { expect(subject).not_to be_active(Time.now) }