about summary refs log tree commit diff
path: root/spec/controllers/tags_controller_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/controllers/tags_controller_spec.rb')
-rw-r--r--spec/controllers/tags_controller_spec.rb6
1 files changed, 6 insertions, 0 deletions
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