Skip to content

Commit

Permalink
Fix method call in new spec
Browse files Browse the repository at this point in the history
  • Loading branch information
wkirby committed Oct 11, 2024
1 parent bf2106d commit a7708e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/phi_attrs/phi_record/instance__allow_phi_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@
end

it 'does not leak phi allowance if get_phi returns' do |t|
def name_getter
patient_jane.get_phi(file_name, t.full_description) { return patient_jane.first_name }
def name_getter(reason, description)
patient_jane.get_phi(reason, description) { return patient_jane.first_name }
end

expect(patient_jane.phi_allowed?).to be false
first_name = name_getter
first_name = name_getter(file_name, t.full_description)
expect(first_name).to eq('Jane')
expect(patient_jane.phi_allowed?).to be false
end
Expand Down

0 comments on commit a7708e3

Please sign in to comment.