Skip to content

Commit

Permalink
PR Feedback: elasticspoon, compwron
Browse files Browse the repository at this point in the history
  • Loading branch information
freestylebit committed Jun 12, 2024
1 parent ada4aa2 commit 736f7a7
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/views/layouts/header.html.erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -117,5 +117,13 @@ def true_user

expect(rendered).to match "<strong>Role: Volunteer</strong>"
end

it "renders a stop impersonating link when impersonating" do
allow(view).to receive(:true_user).and_return(true_user)

render partial: "layouts/header"

expect(rendered).to have_link(href: "/volunteers/stop_impersonating")
end
end
end

0 comments on commit 736f7a7

Please sign in to comment.