demarches-normaliennes/spec/models/france_connect_particulier_client_spec.rb
2018-01-15 16:59:50 +01:00

15 lines
422 B
Ruby

require 'spec_helper'
describe FranceConnectParticulierClient do
describe '.initialize' do
subject { FranceConnectParticulierClient.new(code) }
context 'when given code in params' do
let(:code) { 'plop' }
before { allow_any_instance_of(FranceConnectParticulierClient).to receive(:authorization_code=) }
it { is_expected.to have_received(:authorization_code=).with(code) }
end
end
end