FC ParticulierClient: simplier initialize

This commit is contained in:
simon lehericey 2018-01-11 11:07:25 +01:00 committed by Simon Lehericey
parent 8c487c65a9
commit 4c2da46dd8
3 changed files with 8 additions and 5 deletions

View file

@ -7,10 +7,10 @@ describe FranceConnectParticulierClient do
end
context 'when given code in params' do
let(:code) { 'plop' }
subject { described_class.new(code: code) }
subject { described_class.new(code) }
it 'set authorisation code' do
expect_any_instance_of(described_class).to receive(:authorization_code=).with(code)
described_class.new(code: code)
described_class.new(code)
end
end
end