mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
@ -192,6 +192,10 @@ describe UsersController do
|
||||
it 'raises an error' do
|
||||
lambda { xhr :put, :change_email, username: user.username, email: other_user.email }.should raise_error(Discourse::InvalidParameters)
|
||||
end
|
||||
|
||||
it 'raises an error if there is whitespace too' do
|
||||
lambda { xhr :put, :change_email, username: user.username, email: other_user.email + ' ' }.should raise_error(Discourse::InvalidParameters)
|
||||
end
|
||||
end
|
||||
|
||||
context 'success' do
|
||||
|
Reference in New Issue
Block a user