6465 - Moved test for anonymous user accessing collection in a shared project from...
[arvados.git] / apps / workbench / test / controllers / application_controller_test.rb
index 7e9c0bc88541ad2e1b557dafa825b2bc37a6a168..22ff7d4b2bfc60c35309eb6c654a087de5c0a3f8 100644 (file)
@@ -324,14 +324,6 @@ class ApplicationControllerTest < ActionController::TestCase
     assert_equal collections[pdh1].size, 1, 'Expected one collection for the passed in pdh #{pdh1}'
     assert collections[pdh2], 'Expected collections for the passed in pdh #{pdh2}'
     assert_equal collections[pdh2].size, 1, 'Expected one collection for the passed in pdh #{pdh2}'
-
-    # invoke again for this same input. this time, the preloaded data will be returned
-    collections = ac.send :preload_collections_for_objects, pdhs
-    assert collections, 'Expected collections map'
-    assert collections.is_a?(Hash), 'Expected a hash'
-    assert collections.size == 2, 'Expected two objects in the preloaded collection hash'
-    assert collections[pdh1], 'Expected collection for the passed in pdh #{pdh1}'
-    assert collections[pdh2], 'Expected collection for the passed in pdh #{pdh2}'
   end
 
   test "requesting a nonexistent object returns 404" do