demarches-normaliennes/spec/models/france_connect_particulier_client_spec.rb

16 lines
422 B
Ruby
Raw Normal View History

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
2017-04-04 15:27:04 +02:00
end