DEV: Add a test for the "duplicate link" message (#21139)

A followup to cb1e95cd3d16c1550596cee33ef361402d1bec0b

---

`warning_message = nil` in the rb file was an unused variable
This commit is contained in:
Jarek Radosz
2023-04-18 22:23:20 +02:00
committed by GitHub
parent 0650504bf5
commit 0cd8659b06
3 changed files with 93 additions and 30 deletions

View File

@ -22,7 +22,6 @@ class ComposerMessagesController < ApplicationController
usernames = params.require(:usernames)
users = ComposerMessagesFinder.user_not_seen_in_a_while(usernames)
user_count = users.count
warning_message = nil
if user_count > 0
message_locale =