Sha256: e6042a753ccc5507c5be5fbf58063b0b7d5b3387519c192da4ac0e2c9495f0a5

Contents?: true

Size: 350 Bytes

Versions: 4

Compression:

Stored size: 350 Bytes

Contents

# frozen_string_literal: true

RSpec::Matchers.define :be_an_embargo_matching do |embargo_args|
  match do |embargo|
    (embargo.visibility_after_embargo == embargo_args[:after]) &&
      (embargo.visibility_during_embargo == embargo_args[:during]) &&
      embargo.embargo_release_date.to_s.start_with?(embargo_args[:release_date][0..9])
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hyrax-5.0.0 spec/support/matchers/embargo.rb
hyrax-5.0.0.rc3 spec/support/matchers/embargo.rb
hyrax-3.0.0.pre.rc1 spec/support/matchers/embargo.rb
hyrax-3.0.0.pre.beta3 spec/support/matchers/embargo.rb