0
0
Fork 0

Return missing page when tag does not exist (#2563)

This commit is contained in:
Matt Jankowski 2017-04-28 09:11:21 -04:00 committed by Eugen Rochko
parent 61067dc2e6
commit 429480bb77
2 changed files with 7 additions and 1 deletions

View file

@ -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