chore(service): SIRET is required

This commit is contained in:
Colin Darie 2022-07-25 18:17:30 +02:00
parent 9d59a50cd4
commit 91c735a219
4 changed files with 11 additions and 5 deletions

View file

@ -48,9 +48,9 @@ describe Service, type: :model do
expect(subject).not_to be_valid
end
it 'should be optional' do
it 'should be required' do
subject.siret = nil
expect(subject).to be_valid
expect(subject).not_to be_valid
end
end