Revert "FIX: when creating new PM username/groupname should be case-insensitive"

This reverts commit 2be79d94f5226099d287aa9c69e5a2814baff420.

This is affecting multiple code path. Investigating.
This commit is contained in:
Arpit Jalan
2020-05-25 20:10:14 +05:30
parent 30849c8b37
commit 302b37c805
3 changed files with 6 additions and 6 deletions

View File

@ -825,7 +825,7 @@ describe PostsController do
post "/posts.json", params: {
raw: 'I can haz a test',
title: 'I loves my test',
target_recipients: "test_Group",
target_recipients: group.name,
archetype: Archetype.private_message
}
@ -965,13 +965,13 @@ describe PostsController do
it 'creates a private post' do
user_2 = Fabricate(:user)
user_3 = Fabricate(:user, username: "foo_bar")
user_3 = Fabricate(:user)
post "/posts.json", params: {
raw: 'this is the test content',
archetype: 'private_message',
title: "this is some post",
target_recipients: "#{user_2.username},Foo_Bar"
target_recipients: "#{user_2.username},#{user_3.username}"
}
expect(response.status).to eq(200)