Sha256: 63896c605694d6b3845d4df8619cf60b8116f72c46138e0f968744e7dd5b35d8

Contents?: true

Size: 578 Bytes

Versions: 2

Compression:

Stored size: 578 Bytes

Contents

# frozen_string_literal: true
RSpec::Matchers.define :require_membership do
  match do |actual|
    actual&.require_membership?
  end
end

RSpec::Matchers.define :allow_multiple_membership do
  match do |actual|
    actual&.allow_multiple_membership?
  end
end

RSpec::Matchers.define :assign_visibility do
  match do |actual|
    actual&.assigns_visibility?
  end
end

RSpec::Matchers.define :assign_workflow do
  match do |actual|
    actual&.assigns_workflow?
  end
end

RSpec::Matchers.define :have_collections do
  match do |actual|
    actual&.collections&.any?
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
hyrax-5.0.0 spec/support/matchers/collection_type_property_matchers.rb
hyrax-5.0.0.rc3 spec/support/matchers/collection_type_property_matchers.rb