2016-11-14 18:36:09 +01:00
|
|
|
require 'spec_helper'
|
2016-01-21 17:06:09 +01:00
|
|
|
|
|
|
|
describe FranceConnectInformation, type: :model do
|
|
|
|
describe 'validation' do
|
|
|
|
context 'france_connect_particulier_id' do
|
|
|
|
it { is_expected.not_to allow_value(nil).for(:france_connect_particulier_id) }
|
|
|
|
it { is_expected.not_to allow_value('').for(:france_connect_particulier_id) }
|
|
|
|
it { is_expected.to allow_value('mon super projet').for(:france_connect_particulier_id) }
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|