Commit 73e2a41

mo <mo@mokhan.ca>
2018-09-18 18:05:03
use build_xml instead of build.to_xml
1 parent 9d28faa
Changed files (1)
spec
spec/saml/kit/assertion_spec.rb
@@ -259,8 +259,8 @@ RSpec.describe Saml::Kit::Assertion do
     before { allow(registry).to receive(:metadata_for).with(configuration.entity_id).and_return(metadata) }
 
     it 'parses a raw xml assertion' do
-      saml = described_class.build(user, saml_request, true, configuration: configuration)
-      expect(described_class.new(saml.to_xml, configuration: configuration)).to be_valid
+      saml = described_class.build_xml(user, saml_request, true, configuration: configuration)
+      expect(described_class.new(saml, configuration: configuration)).to be_valid
     end
   end
 end