2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2015-12-24 10:12:23 +01:00
|
|
|
describe FranceConnectParticulierClient do
|
2018-03-20 16:00:30 +01:00
|
|
|
describe '#initialize' do
|
2018-01-11 11:50:04 +01:00
|
|
|
subject { FranceConnectParticulierClient.new(code) }
|
|
|
|
|
2015-12-24 10:12:23 +01:00
|
|
|
context 'when given code in params' do
|
|
|
|
let(:code) { 'plop' }
|
2018-01-11 11:50:04 +01:00
|
|
|
|
|
|
|
before { allow_any_instance_of(FranceConnectParticulierClient).to receive(:authorization_code=) }
|
|
|
|
|
|
|
|
it { is_expected.to have_received(:authorization_code=).with(code) }
|
2015-12-24 10:12:23 +01:00
|
|
|
end
|
|
|
|
end
|
2017-04-04 15:27:04 +02:00
|
|
|
end
|