Merge branch 'master' into 11060-all-visible-repos
[arvados.git] / apps / workbench / test / unit / arvados_resource_list_test.rb
index a3bfbc19f4105918f453f4baf1ab0d0ffda13c5c..cfdf8f92445ec1b415dce7c2e86ff6a70f646834 100644 (file)
@@ -2,6 +2,8 @@ require 'test_helper'
 
 class ResourceListTest < ActiveSupport::TestCase
 
+  reset_api_fixtures :after_each_test, false
+
   test 'links_for on a resource list that does not return links' do
     use_token :active
     results = Specimen.all
@@ -91,4 +93,10 @@ class ResourceListTest < ActiveSupport::TestCase
     assert_empty c.results
   end
 
+  test 'count=none' do
+    use_token :active
+    c = Collection.with_count('none')
+    assert_nil c.items_available
+    refute_empty c.results
+  end
 end