Update tests for `user_screen_name` to include `target` attribute

This commit is contained in:
Karina Kwiatek 2023-05-09 23:08:35 +02:00
parent 4bf977e96c
commit 46c2412ad8
1 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ describe UserHelper, type: :helper do
context "user is not banned" do
it "returns a link tag to the user's profile" do
expect(subject).to eq(link_to(user.profile.safe_name, user_path(user), class: ""))
expect(subject).to eq(link_to(user.profile.safe_name, user_path(user), class: "", target: "_top"))
end
end
@ -133,7 +133,7 @@ describe UserHelper, type: :helper do
end
it "returns a link tag to the user's profile" do
expect(subject).to eq(link_to(user.profile.safe_name, user_path(user), class: "user--banned"))
expect(subject).to eq(link_to(user.profile.safe_name, user_path(user), class: "user--banned", target: "_top"))
end
end
end