3321: Workbench copes when pipeline components have an odd form.
[arvados.git] / apps / workbench / test / functional / application_controller_test.rb
index f3dbcb523be5d2a63d1c197dc938706811aa7dea..50f990aa0bca1119c11aba9b60a5365fdd6f8811 100644 (file)
@@ -296,4 +296,11 @@ class ApplicationControllerTest < ActionController::TestCase
     assert users.size == 3, 'Expected two objects in the preloaded hash'
   end
 
+  test "requesting a nonexistent object returns 404" do
+    # We're really testing ApplicationController's find_object_by_uuid.
+    # It's easiest to do that by instantiating a concrete controller.
+    @controller = NodesController.new
+    get(:show, {id: "zzzzz-zzzzz-zzzzzzzzzzzzzzz"}, session_for(:admin))
+    assert_response 404
+  end
 end