Skip to content

Commit

Permalink
96 - fixing surgeon show erb test
Browse files Browse the repository at this point in the history
  • Loading branch information
mooreniemi committed Feb 23, 2021
1 parent dabd18e commit 582bb78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/views/surgeons/show.html.erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
shared_examples "surgeon" do
it "displays the surgeon" do
assign(:surgeon, surgeon)
assign(:pins_by_surgeon_procedure, {})

render

Expand All @@ -24,10 +25,12 @@

it "shows the relevant procedures" do
assign(:surgeon, surgeon)
assign(:pins_by_surgeon_procedure, { [surgeon.id, pin.procedure_id] => 1})

render

expect(rendered).to match(Regexp.new(pin.procedure.name))
expect(rendered).to match(Regexp.new("Average patient satisfaction"))
end
end
end

0 comments on commit 582bb78

Please sign in to comment.