Return missing page when tag does not exist (#2563)
This commit is contained in:
parent
61067dc2e6
commit
429480bb77
2 changed files with 7 additions and 1 deletions
|
@ -12,5 +12,11 @@ RSpec.describe TagsController, type: :controller do
|
|||
get :show, params: { id: 'test' }
|
||||
expect(response).to have_http_status(:success)
|
||||
end
|
||||
|
||||
it 'returns http missing for non-existent tag' do
|
||||
get :show, params: { id: 'none' }
|
||||
|
||||
expect(response).to have_http_status(:missing)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue