-
Notifications
You must be signed in to change notification settings - Fork 755
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update spec/helpers/notifications_helper_spec.rb
- Loading branch information
1 parent
00ae24d
commit 1ad5079
Showing
1 changed file
with
2 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -58,7 +58,7 @@ | |
uid: 'uid', | ||
user_id: 1 | ||
} | ||
expect(new_ally_request_link(uniqueid, data)).to eq('<div id="uniqueid"><div><a href="/profile?uid=uid">Julia Nguyen</a> sent an ally request!</div><div><a rel="nofollow" data-method="post" href="/allies/add?ally_id=1">Accept</a> | <a data-confirm="Are you sure?" rel="nofollow" data-method="post" href="/allies/remove?ally_id=1">Reject</a></div></div>') | ||
expect(new_ally_request_link(uniqueid, data)).to eq('<div id="uniqueid"><div><a href="/profile?uid=uid">Julia Nguyen</a> sent an ally request!</div><div><a rel="nofollow" data-method="post" href="/allies/add?ally_id=1">Accept</a> | <a data-confirm="Are you sure?" rel="nofollow" data-method="post" href="/allies/remove?ally_id=1">Reject</a></div></div>') | ||
end | ||
|
||
it 'sanitizes and returns the correct link' do | ||
|
@@ -68,7 +68,7 @@ | |
uid: 'uid', | ||
user_id: 1 | ||
} | ||
expect(new_ally_request_link(uniqueid, data)).to eq('<div id="uniqueid"><div><a href="/profile?uid=uid">[email protected]</a> sent an ally request!</div><div><a rel="nofollow" data-method="post" href="/allies/add?ally_id=1">Accept</a> | <a data-confirm="Are you sure?" rel="nofollow" data-method="post" href="/allies/remove?ally_id=1">Reject</a></div></div>') | ||
expect(new_ally_request_link(uniqueid, data)).to eq('<div id="uniqueid"><div><a href="/profile?uid=uid">[email protected]</a> sent an ally request!</div><div><a rel="nofollow" data-method="post" href="/allies/add?ally_id=1">Accept</a> | <a data-confirm="Are you sure?" rel="nofollow" data-method="post" href="/allies/remove?ally_id=1">Reject</a></div></div>') | ||
end | ||
end | ||
|
||
|