Skip to content

Commit

Permalink
Issue #448 - Fixing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorMonardez committed Sep 24, 2024
1 parent bbbc249 commit af1ff0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions config/locales/professor.pt-BR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ pt-BR:
identity_issuing_place: "Local de Expedição"
identity_number: "Número da identidade"
affiliations: "Afiliações"
institution:
one: "Instituição"
other: "Instituições"
institutions: "Instituições"
name: "Nome"
neighborhood: "Bairro"
Expand Down
4 changes: 2 additions & 2 deletions spec/models/professor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
it { should have_many(:course_classes).dependent(:restrict_with_exception) }
it { should have_many(:thesis_defense_committee_participations).dependent(:restrict_with_exception) }
it { should have_many(:thesis_defense_committee_enrollments).source(:enrollment).through(:thesis_defense_committee_participations) }
it { should have_many(:affiliations).dependent(:restrict_with_exception) }
it { should have_many(:institutions).through(:affiliations).dependent(:restrict_with_exception) }
it { should have_many(:affiliations) }
it { should have_many(:institutions).through(:affiliations) }
before(:all) do
@professor_role = FactoryBot.create :role_professor
@destroy_later = []
Expand Down

0 comments on commit af1ff0f

Please sign in to comment.