From f1ba981ae93182a5e8ea7344db09773b7e02819c Mon Sep 17 00:00:00 2001 From: Blake Erickson Date: Thu, 18 Oct 2018 13:32:36 -0600 Subject: [PATCH] Improve add user to group spec for uppercase usernames Oops forgot to check for this. See previous commit for more details. --- spec/requests/groups_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/requests/groups_controller_spec.rb b/spec/requests/groups_controller_spec.rb index 15d6b9612d6..6b5cadad798 100644 --- a/spec/requests/groups_controller_spec.rb +++ b/spec/requests/groups_controller_spec.rb @@ -861,7 +861,7 @@ describe GroupsController do it "adds by username" do expect do put "/groups/#{group.id}/members.json", - params: { usernames: [user1.username, user2.username].join(",") } + params: { usernames: [user1.username, user2.username.upcase].join(",") } end.to change { group.users.count }.by(2) expect(response.status).to eq(200) @@ -1075,7 +1075,7 @@ describe GroupsController do it "removes by username" do expect do delete "/groups/#{group1.id}/members.json", - params: { usernames: [user1.username, user2.username].join(",") } + params: { usernames: [user1.username, user2.username.upcase].join(",") } end.to change { group1.users.count }.by(-2) expect(response.status).to eq(200) end