Direct link for e- mail response to a conversation

This commit is contained in:
Perisso
2016-02-15 09:41:25 +01:00
parent c7309ae6fc
commit 731e7e81cf
3 changed files with 4 additions and 2 deletions

View File

@@ -45,6 +45,7 @@ RAILS_ENV=test bin/rake db:setup
Run the app locally: Run the app locally:
``` ```
bin/rails s bin/rails s
``` ```
Prerequisites for testing: install PhantomJS >= 2.0 Prerequisites for testing: install PhantomJS >= 2.0

View File

@@ -9,7 +9,7 @@
</p> </p>
<p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;"> <p style="font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-weight: normal;line-height: 24px;">
<%= t("mailers.reply.new_reply_by_html", commenter: @reply.author.name) %> <%= link_to @commentable.title, commentable_url(@commentable), style: "color: #2895F1; text-decoration:none;" %> <%= t("mailers.reply.new_reply_by_html", commenter: @reply.author.name) %> <%= link_to @commentable.title, comment_url(@reply.id), style: "color: #2895F1; text-decoration:none;" %>
</p> </p>
<p style="border-left: 2px solid #DEE0E3;font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-style: italic;font-weight: normal;line-height: 24px;margin-left: 20px;padding: 10px;"> <p style="border-left: 2px solid #DEE0E3;font-family: 'Open Sans','Helvetica Neue',arial,sans-serif;font-size: 14px;font-style: italic;font-weight: normal;line-height: 24px;margin-left: 20px;padding: 10px;">

View File

@@ -92,7 +92,8 @@ feature 'Emails' do
email = open_last_email email = open_last_email
expect(email).to have_subject('Someone has responded to your comment') expect(email).to have_subject('Someone has responded to your comment')
expect(email).to deliver_to(user) expect(email).to deliver_to(user)
expect(email).to have_body_text(debate_path(Comment.first.commentable)) expect(email).to_not have_body_text(debate_path(Comment.first.commentable))
expect(email).to have_body_text(comment_path(Comment.last))
expect(email).to have_body_text(I18n.t("mailers.config.manage_email_subscriptions")) expect(email).to have_body_text(I18n.t("mailers.config.manage_email_subscriptions"))
expect(email).to have_body_text(account_path) expect(email).to have_body_text(account_path)
end end