Skip to content

Commit

Permalink
Fix specs
Browse files Browse the repository at this point in the history
  • Loading branch information
JoonasAapro committed May 17, 2024
1 parent 93716dc commit 0b93cca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion spec/services/decidim/suomifi/action_authorizer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
let(:minimum_age) { 13 }
let(:allowed_municipalities) { "91,837,49" }

let(:authorization) { create(:authorization, :granted, user:, metadata:, pseudonymized_pin:) }
let(:authorization) { create(:authorization, :granted, user:, metadata:, pseudonymized_pin: pin_digest) }
let(:user) { create(:user, organization:) }
let(:metadata) do
{
Expand Down
7 changes: 7 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,13 @@
config.private_key = cs.private_key.to_pem
config.action_authorizer = "Decidim::Suomifi::ActionAuthorizer"
config.use_suomifi_email = true
config.auto_email_domain = "1.lvh.me"
config.extra = {
assertion_consumer_service_url: "http://1.lvh.me/users/auth/suomifi/callback",
idp_cert_multi: {
signing: [cs.sign_certificate.to_pem]
}
}
end
end

Expand Down

0 comments on commit 0b93cca

Please sign in to comment.