Skip to content

Commit

Permalink
Check other required attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
zogoo committed Jan 3, 2024
1 parent 8a53bf1 commit 30e6279
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/lib/saml_idp/incoming_metadata_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,11 @@ module SamlIdp
metadata = SamlIdp::IncomingMetadata.new(metadata_with_slo)
expect(metadata.single_logout_services).to be_a(Array)
expect(metadata.single_logout_services.size).to eq(1)
expect(metadata.single_logout_services.first[:binding]).to eq("HTTP-Redirect")
expect(metadata.single_logout_services).to include(
hash_including(binding: "HTTP-Redirect"),
hash_including(location: "https://test/logout"),
hash_including(default: false)
)
end
end
end

0 comments on commit 30e6279

Please sign in to comment.