chore(service): SIRET is required
This commit is contained in:
parent
9d59a50cd4
commit
91c735a219
4 changed files with 11 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue