begin spec client france connect service

This commit is contained in:
Xavier J 2015-10-06 11:47:42 +02:00
parent 5cb8f92a81
commit 20cae835e6
5 changed files with 22 additions and 18 deletions

View file

@ -9,7 +9,7 @@ describe FranceConnectClient do
let(:code) { 'plop' }
subject { described_class.new(code: code) }
it 'set authorisation code' do
expect_any_instance_of(described_class).to receive(:authorization_code=)
expect_any_instance_of(described_class).to receive(:authorization_code=).with(code)
described_class.new(code: code)
end
end