Tests: france_connect initializer if not test
This commit is contained in:
parent
df26b4c3e2
commit
6865231a27
1 changed files with 14 additions and 2 deletions
|
@ -1,2 +1,14 @@
|
|||
file_path = "#{Rails.root}/config/france_connect.yml"
|
||||
FRANCE_CONNECT = Hashie::Mash.load(file_path)
|
||||
FRANCE_CONNECT = if !Rails.env.test?
|
||||
file_path = "#{Rails.root}/config/france_connect.yml"
|
||||
Hashie::Mash.load(file_path)
|
||||
else
|
||||
Hashie::Mash.new({
|
||||
particulier_identifier: 'plop',
|
||||
particulier_secret: 'plip',
|
||||
particulier_redirect_uri: 'https://bidon.com/endpoint',
|
||||
particulier_authorization_endpoint: 'https://bidon.com/endpoint',
|
||||
particulier_token_endpoint: 'https://bidon.com/endpoint',
|
||||
particulier_userinfo_endpoint: 'https://bidon.com/endpoint',
|
||||
particulier_logout_endpoint: 'https://bidon.com/endpoint',
|
||||
})
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue