Commit b3d2689
Changed files (5)
lib
saml
kit
builders
spec
saml
lib/saml/kit/builders/null.rb
@@ -1,4 +1,3 @@
-
# frozen_string_literal: true
module Saml
lib/saml/kit/builders/response.rb
@@ -40,7 +40,7 @@ module Saml
end
def assertion=(value)
- @assertion = value ? value : Null.new
+ @assertion = value || Null.new
end
def assertion
lib/saml/kit/organization.rb
@@ -1,4 +1,3 @@
-
module Saml
module Kit
class Organization
spec/saml/kit/assertion_spec.rb
@@ -52,7 +52,7 @@ RSpec.describe Saml::Kit::Assertion do
</AuthnStatement>
</Assertion>
</Response>
-XML
+ XML
document = Nokogiri::XML(xml)
node = document.at_xpath('//saml:Assertion', 'saml' => Saml::Kit::Namespaces::ASSERTION)
subject = described_class.new(node, configuration: configuration)
@@ -89,7 +89,7 @@ XML
</AuthnStatement>
</Assertion>
</Response>
-XML
+ XML
document = Nokogiri::XML(xml)
node = document.at_xpath('//saml:Assertion', 'saml' => Saml::Kit::Namespaces::ASSERTION)
subject = described_class.new(node, configuration: configuration)
@@ -129,7 +129,7 @@ XML
</AuthnStatement>
</Assertion>
</Response>
-XML
+ XML
subject = described_class.new(Nokogiri::XML(xml))
expect(subject).to be_present
end
spec/saml/kit/response_spec.rb
@@ -471,7 +471,7 @@ RSpec.describe Saml::Kit::Response do
</Attribute>
</AttributeStatement>
</Assertion>
-XML
+ XML
end
it 'parses the encrypted assertion' do
@@ -510,7 +510,7 @@ XML
</xenc:EncryptedData>
</saml:EncryptedAssertion>
</samlp:Response>
-XML
+ XML
subject = described_class.new(xml)
expect(subject.attributes).to match_array([