Commit d32af4a

mokha <mo@mokhan.ca>
2019-01-23 00:55:01
add assertions
1 parent c6140f8
Changed files (1)
spec
spec/xml/kit/key_info_spec.rb
@@ -53,6 +53,8 @@ RSpec.describe Xml::Kit::KeyInfo do
         subject.retrieval_method.type = type
       end
 
+      specify { expect(result['KeyInfo']['RetrievalMethod']).to be_present }
+      specify { expect(result['KeyInfo']['RetrievalMethod']['xmlns']).to eql(::Xml::Kit::Namespaces::XMLDSIG) }
       specify { expect(result['KeyInfo']['RetrievalMethod']['URI']).to eql(uri) }
       specify { expect(result['KeyInfo']['RetrievalMethod']['Type']).to eql(type) }
     end