Skip to content

Commit

Permalink
ISSUE #448: Correction at student_enrollment_spec.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
IgorMonardez committed Feb 11, 2025
1 parent b4a8db2 commit b1c2085
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 25 deletions.
34 changes: 12 additions & 22 deletions db/schema.rb

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions spec/features/student_enrollment_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@

@destroy_all << @institution = FactoryBot.create(:institution, name: "UFF")

@destroy_all << @affiliation1 = FactoryBot.create(:affiliation, institution: @institution, professor: @professor1, end_date: nil)
@destroy_all << @affiliation2 = FactoryBot.create(:affiliation, institution: @institution, professor: @professor2, end_date: nil)
@destroy_all << @affiliation3 = FactoryBot.create(:affiliation, institution: @institution, professor: @professor3, end_date: nil)
@destroy_all << @affiliation1 = FactoryBot.create(:affiliation, institution: @institution, professor: @professor1, start_date: 3.year.ago, end_date: nil)
@destroy_all << @affiliation2 = FactoryBot.create(:affiliation, institution: @institution, professor: @professor2, start_date: 3.year.ago, end_date: nil)
@destroy_all << @affiliation3 = FactoryBot.create(:affiliation, institution: @institution, professor: @professor3, start_date: 3.year.ago, end_date: nil)

@destroy_all << FactoryBot.create(:advisement_authorization, professor: @professor1, level: @level1)
@destroy_all << FactoryBot.create(:advisement_authorization, professor: @professor1, level: @level2)
Expand Down Expand Up @@ -193,6 +193,7 @@
"Nome", "Instituição"
]
expect(page.all("tbody tr").size).to eq 3
binding.pry
expect(page).to have_content "UFF"
end
end
Expand Down

0 comments on commit b1c2085

Please sign in to comment.