mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-05-31 08:51:13 +00:00
Return 404 if user not found
This commit is contained in:
parent
5e82ec72da
commit
0d3d367dd6
2 changed files with 8 additions and 0 deletions
|
@ -23,6 +23,12 @@ describe Api::V1::UsersController do
|
|||
expect(json['steam']).to have_key("url")
|
||||
expect(json['steam']).to have_key("nickname")
|
||||
end
|
||||
|
||||
it 'returns 404 if user does not exist' do
|
||||
expect {
|
||||
get :show, id: -1
|
||||
}.to raise_error(ActionController::RoutingError)
|
||||
end
|
||||
end
|
||||
|
||||
describe '#index' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue