projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
12662: Added test proving that User.current won't return the
[arvados.git]
/
apps
/
workbench
/
test
/
unit
/
arvados_resource_list_test.rb
diff --git
a/apps/workbench/test/unit/arvados_resource_list_test.rb
b/apps/workbench/test/unit/arvados_resource_list_test.rb
index b0f274d1892e179e6313d55d2954b9cb47972540..e9eb2f8ef6a8a1ab6792665c10570e0b317129cd 100644
(file)
--- a/
apps/workbench/test/unit/arvados_resource_list_test.rb
+++ b/
apps/workbench/test/unit/arvados_resource_list_test.rb
@@
-1,3
+1,7
@@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
require 'test_helper'
class ResourceListTest < ActiveSupport::TestCase
require 'test_helper'
class ResourceListTest < ActiveSupport::TestCase
@@
-93,4
+97,10
@@
class ResourceListTest < ActiveSupport::TestCase
assert_empty c.results
end
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
end