fix horribly broken invite code, could lead to inviting the wrong person to a conversation

This commit is contained in:
Sam
2013-06-19 10:31:19 +10:00
parent 66c18a0bec
commit 799b402778
7 changed files with 52 additions and 26 deletions

View File

@ -52,11 +52,6 @@ describe Admin::ImpersonateController do
session[:current_user_id].should == user.id
end
it "also works with a name" do
xhr :post, :create, username_or_email: user.name
session[:current_user_id].should == user.id
end
end
end