[Users] Fix double dot in account to new message

This commit is contained in:
Earlopain 2022-09-11 18:54:43 +02:00
parent a0fe40db74
commit 0cd5391d3c
No known key found for this signature in database
GPG Key ID: 6CFB948E15246897
2 changed files with 2 additions and 2 deletions

View File

@ -444,7 +444,7 @@ class User < ApplicationRecord
module ThrottleMethods
def throttle_reason(reason)
reasons = {
REJ_NEWBIE: 'can not yet perform this action. Account is too new.',
REJ_NEWBIE: 'can not yet perform this action. Account is too new',
REJ_LIMITED: 'have reached the hourly limit for this action'
}
reasons.fetch(reason, 'unknown throttle reason, please report this as a bug')

View File

@ -21,7 +21,7 @@ class CommentTest < ActiveSupport::TestCase
should "fail creation" do
comment = FactoryBot.build(:comment, post: create(:post))
comment.save
assert_equal(["Creator can not yet perform this action. Account is too new."], comment.errors.full_messages)
assert_equal(["Creator can not yet perform this action. Account is too new"], comment.errors.full_messages)
end
end