Skip to content

Wrong comment id mentions mail notification

Acceptance Test

To test this ticket, we need to first install maildev in our global environment with

%> npm -install -g maildev
%> maildev

Maildev server will be running

MailDev webapp running at http://0.0.0.0:1080
MailDev SMTP Server running at 0.0.0.0:1025

And visit the link http://0.0.0.0:1080. For more info about maildev

Start bundle exec sidekiq

Then, in config/environments/development.rb you will need to uncomment line 84 config.action_mailer.delivery_method = :smtp That will allow you to use Maildev.

To test, reset your database with bundle exec rails db:reset First you will need to check the nickname of User.first to add a mention in the content of the comment.

%> User.first.nickname
=> "Joi" 
%> FactoryBot.build(:user).save
%> comment = Comment.create!(user_id: 2, post_id: Post.last.id, content: "hey @Joi")

In the maildev server, you will see new emails pop in !

Capture_d_écran_2021-06-03_à_18.41.26

Closed issue 654

Edited by Isabelle Lafont

Merge request reports