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:
Régis Hanol
2020-01-23 16:37:48 +01:00
parent 0b3de60bee
commit 821e920711
4 changed files with 9 additions and 9 deletions

View File

@@ -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
}