demarches-normaliennes/spec/models/france_connect_information_spec.rb

12 lines
431 B
Ruby
Raw Normal View History

2016-11-14 18:36:09 +01:00
require 'spec_helper'
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