Skip to content

Commit

Permalink
Don't try and add programmes to collection
Browse files Browse the repository at this point in the history
  • Loading branch information
fbacall committed Sep 25, 2024
1 parent 2dcf459 commit 9059ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/unit/collection_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9059ad5

Please sign in to comment.