diff --git a/test/unit/collection_test.rb b/test/unit/collection_test.rb index 9a38fc7866..9e83fbff1d 100644 --- a/test/unit/collection_test.rb +++ b/test/unit/collection_test.rb @@ -181,7 +181,7 @@ class CollectionTest < ActiveSupport::TestCase assert_empty collection.items assert_empty collection.assets - types = Seek::Util.persistent_classes.select { |c| c.name != 'Project' && c.name != 'Collection' && c.method_defined?(:collections) } + types = Seek::Util.persistent_classes.select { |c| !%w[Project Programme Collection].include?(c.name) && c.method_defined?(:collections) } types.each do |type| opts = [type.name.underscore.to_sym] opts << { policy: FactoryBot.create(:public_policy) } if type.method_defined?(:policy)