mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 07:53:49 +08:00
FIX: Incorrect error raised.
This commit is contained in:
@ -36,8 +36,10 @@ describe NotificationsController do
|
||||
|
||||
context 'when username params is not valid' do
|
||||
it 'should raise the right error' do
|
||||
expect { xhr :get, :index, username: 'somedude' }
|
||||
.to raise_error(Discourse::InvalidParameters)
|
||||
xhr :get, :index, username: 'somedude'
|
||||
|
||||
expect(response).to_not be_success
|
||||
expect(response.status).to eq(404)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user