Skip to content

Commit

Permalink
Clean up patient creation in session management
Browse files Browse the repository at this point in the history
This was creating an extra session, location, etc, which would sometimes
trigger an error if the extra location created had the same name as the
one being used in the test. Rare, but still annoying.
  • Loading branch information
misaka committed May 28, 2024
1 parent da03c17 commit 1fc39c2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/features/session_management_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ def given_my_team_is_running_an_hpv_vaccination_campaign
@team = create(:team, :with_one_nurse, :with_one_location)
create(:campaign, :hpv, team: @team)
@location = @team.locations.first
@patient = create(:patient)
@location.patients << @patient
@patient = create(:patient, location: @location, session: nil)
end

def when_i_go_to_todays_sessions_as_a_nurse
Expand Down

0 comments on commit 1fc39c2

Please sign in to comment.