Commit b7b5757
Changed files (2)
lib
saml
kit
spec
saml
kit
lib/saml/kit/signature.rb
@@ -107,8 +107,8 @@ module Saml
end
rescue Xmldsig::SchemaError => error
errors.add(:base, error.message)
- rescue StandardError => error
- errors.add(:base, :invalid)
+ rescue StandardError
+ errors.add(:base, error.message)
end
def validate_certificate(now = Time.now.utc)
spec/saml/kit/response_spec.rb
@@ -242,7 +242,7 @@ RSpec.describe Saml::Kit::Response do
end
it 'is invalid if there are two assertions (one signed and the other unsigned)' do
- raw_xml = IO.read("spec/fixtures/unsigned_response_two_assertions.xml")
+ raw_xml = IO.read('spec/fixtures/unsigned_response_two_assertions.xml')
subject = described_class.new(raw_xml)
expect(subject).not_to be_valid
expect(subject.errors.full_messages).to include('must contain a single Assertion.')