From 429480bb775d53009e311b605a7ca73bd3acbc97 Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Fri, 28 Apr 2017 09:11:21 -0400 Subject: Return missing page when tag does not exist (#2563) --- spec/controllers/tags_controller_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'spec/controllers') diff --git a/spec/controllers/tags_controller_spec.rb b/spec/controllers/tags_controller_spec.rb index 80007ecda..f1119ebce 100644 --- a/spec/controllers/tags_controller_spec.rb +++ b/spec/controllers/tags_controller_spec.rb @@ -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 -- cgit