mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-18 14:05:59 +01:00
Update tests for user_screen_name
to include target
attribute
This commit is contained in:
parent
4bf977e96c
commit
46c2412ad8
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue