Remove "slashes" from specs
I think the "slashes" can be removed. The specs work fine without the "slashes".
This commit is contained in:
@@ -242,7 +242,7 @@ describe "Emails" do
|
||||
expect(email).to have_body_text(direct_message.title)
|
||||
expect(email).to have_body_text(direct_message.body)
|
||||
expect(email).to have_body_text(direct_message.sender.name)
|
||||
expect(email).to have_body_text(/#{user_path(direct_message.sender_id)}/)
|
||||
expect(email).to have_body_text(user_path(direct_message.sender_id))
|
||||
expect(email).to have_body_text(edit_subscriptions_path(token: receiver.subscriptions_token))
|
||||
end
|
||||
|
||||
@@ -290,16 +290,16 @@ describe "Emails" do
|
||||
expect(email).to have_body_text(notification1.notifiable.body)
|
||||
expect(email).to have_body_text(proposal1.author.name)
|
||||
|
||||
expect(email).to have_body_text(/#{proposal_path(proposal1, anchor: "tab-notifications")}/)
|
||||
expect(email).to have_body_text(/#{proposal_path(proposal1, anchor: "comments")}/)
|
||||
expect(email).to have_body_text(/#{proposal_path(proposal1, anchor: "social-share")}/)
|
||||
expect(email).to have_body_text(proposal_path(proposal1, anchor: "tab-notifications"))
|
||||
expect(email).to have_body_text(proposal_path(proposal1, anchor: "comments"))
|
||||
expect(email).to have_body_text(proposal_path(proposal1, anchor: "social-share"))
|
||||
|
||||
expect(email).to have_body_text(proposal2.title)
|
||||
expect(email).to have_body_text(notification2.notifiable.title)
|
||||
expect(email).to have_body_text(notification2.notifiable.body)
|
||||
expect(email).to have_body_text(/#{proposal_path(proposal2, anchor: "tab-notifications")}/)
|
||||
expect(email).to have_body_text(/#{proposal_path(proposal2, anchor: "comments")}/)
|
||||
expect(email).to have_body_text(/#{proposal_path(proposal2, anchor: "social-share")}/)
|
||||
expect(email).to have_body_text(proposal_path(proposal2, anchor: "tab-notifications"))
|
||||
expect(email).to have_body_text(proposal_path(proposal2, anchor: "comments"))
|
||||
expect(email).to have_body_text(proposal_path(proposal2, anchor: "social-share"))
|
||||
expect(email).to have_body_text(proposal2.author.name)
|
||||
|
||||
expect(email).not_to have_body_text(proposal3.title)
|
||||
@@ -347,7 +347,7 @@ describe "Emails" do
|
||||
|
||||
email = open_last_email
|
||||
expect(email).to have_subject("Invitation to CONSUL")
|
||||
expect(email).to have_body_text(/#{new_user_registration_path}/)
|
||||
expect(email).to have_body_text(new_user_registration_path)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user