Update tests for `user_screen_name` to include `target` attribute
This commit is contained in:
parent
4bf977e96c
commit
46c2412ad8
|
@ -123,7 +123,7 @@ describe UserHelper, type: :helper do
|
||||||
|
|
||||||
context "user is not banned" do
|
context "user is not banned" do
|
||||||
it "returns a link tag to the user's profile" 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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -133,7 +133,7 @@ describe UserHelper, type: :helper do
|
||||||
end
|
end
|
||||||
|
|
||||||
it "returns a link tag to the user's profile" 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: "user--banned"))
|
expect(subject).to eq(link_to(user.profile.safe_name, user_path(user), class: "user--banned", target: "_top"))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue