Commit ece054a

mo <mo@mokhan.ca>
2018-03-06 16:50:58
ensure present returns true instead of truthy.
1 parent ae0f8ba
Changed files (2)
lib
spec
lib/saml/kit/signature.rb
@@ -66,7 +66,7 @@ module Saml
       end
 
       def present?
-        node
+        node.present?
       end
 
       def to_xml(pretty: false)
spec/saml/kit/signature_spec.rb
@@ -102,7 +102,7 @@ RSpec.describe Saml::Kit::Signature do
 
     context 'when a signature is present' do
       it 'returns true' do
-        expect(subject).to be_present
+        expect(subject.present?).to be(true)
       end
     end
   end