mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:23:25 +08:00
DEV: fix deprecation warnings in specs
Also fixed a typo in a string key "max_pm_recepients" -> "max_pm_recipients"
This commit is contained in:
parent
0b3de60bee
commit
821e920711
|
@ -335,7 +335,7 @@ en:
|
|||
user_is_suspended: "Suspended users are not allowed to post."
|
||||
topic_not_found: "Something has gone wrong. Perhaps this topic was closed or deleted while you were looking at it?"
|
||||
not_accepting_pms: "Sorry, %{username} is not accepting messages at the moment."
|
||||
max_pm_recepients: "Sorry, you can send a message to maximum %{recipients_limit} recipients."
|
||||
max_pm_recipients: "Sorry, you can send a message to maximum %{recipients_limit} recipients."
|
||||
pm_reached_recipients_limit: "Sorry, you can't have more than %{recipients_limit} recipients in a message."
|
||||
removed_direct_reply_full_quotes: "Automatically removed quote of whole previous post."
|
||||
secure_upload_not_allowed_in_public_topic: "Sorry, the following secure upload(s) cannot be used in a public topic: %{upload_filenames}."
|
||||
|
|
|
@ -104,7 +104,7 @@ class PostCreator
|
|||
if names.length > max_allowed_message_recipients
|
||||
errors.add(
|
||||
:base,
|
||||
I18n.t(:max_pm_recepients, recipients_limit: max_allowed_message_recipients)
|
||||
I18n.t(:max_pm_recipients, recipients_limit: max_allowed_message_recipients)
|
||||
)
|
||||
|
||||
return false
|
||||
|
|
|
@ -246,7 +246,7 @@ describe TopicUser do
|
|||
|
||||
let(:topic) { post.topic }
|
||||
|
||||
it 'should ensure recepients and senders are watching' do
|
||||
it 'should ensure recipients and senders are watching' do
|
||||
expect(TopicUser.get(topic, post.user).notification_level)
|
||||
.to eq(TopicUser.notification_levels[:watching])
|
||||
|
||||
|
|
|
@ -939,7 +939,7 @@ describe PostsController do
|
|||
post "/posts.json", params: {
|
||||
raw: 'I can haz a test',
|
||||
title: 'I loves my test',
|
||||
target_usernames: group.name,
|
||||
target_recipients: group.name,
|
||||
archetype: Archetype.private_message
|
||||
}
|
||||
|
||||
|
@ -951,7 +951,7 @@ describe PostsController do
|
|||
post "/posts.json", params: {
|
||||
raw: 'I can haz a test',
|
||||
title: 'I loves my test',
|
||||
target_usernames: group.name,
|
||||
target_recipients: group.name,
|
||||
archetype: Archetype.private_message
|
||||
}
|
||||
|
||||
|
@ -1097,7 +1097,7 @@ describe PostsController do
|
|||
raw: 'this is the test content',
|
||||
archetype: 'private_message',
|
||||
title: "this is some post",
|
||||
target_usernames: "#{user_2.username},#{user_3.username}"
|
||||
target_recipients: "#{user_2.username},#{user_3.username}"
|
||||
}
|
||||
|
||||
expect(response.status).to eq(200)
|
||||
|
@ -1240,7 +1240,7 @@ describe PostsController do
|
|||
raw: 'this is the test content',
|
||||
archetype: 'private_message',
|
||||
title: "this is some post",
|
||||
target_usernames: user_2.username,
|
||||
target_recipients: user_2.username,
|
||||
is_warning: true
|
||||
}
|
||||
|
||||
|
@ -1257,7 +1257,7 @@ describe PostsController do
|
|||
raw: 'this is the test content',
|
||||
archetype: 'private_message',
|
||||
title: "this is some post",
|
||||
target_usernames: user_2.username,
|
||||
target_recipients: user_2.username,
|
||||
is_warning: false
|
||||
}
|
||||
|
||||
|
@ -1277,7 +1277,7 @@ describe PostsController do
|
|||
raw: 'this is the test content',
|
||||
archetype: 'private_message',
|
||||
title: "this is some post",
|
||||
target_usernames: user_2.username,
|
||||
target_recipients: user_2.username,
|
||||
is_warning: true
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user