diff --git a/spec/models/person_spec.rb b/spec/models/person_spec.rb index 6246e060d..4bd807888 100644 --- a/spec/models/person_spec.rb +++ b/spec/models/person_spec.rb @@ -113,4 +113,12 @@ expect(person.errors[:shortname].first).to eq('ist zu lang (mehr als 100 Zeichen)') end end + + context 'language_skills' do + it 'should automatically add default language on person creation' do + new_person = Person.new + expect(new_person.language_skills.length).to eq(3) + expect(new_person.language_skills.map(&:language)).to eql(%w[DE EN FR]) + end + end end