Sha256: 845a805edd61dae1172d42831d479c662594d376a6bf099cf5b30871b466c1de

Contents?: true

Size: 483 Bytes

Versions: 12

Compression:

Stored size: 483 Bytes

Contents

module Ddr::Index
  RSpec.describe Filters do

    describe "HAS_CONTENT" do
      subject { Filters::HAS_CONTENT }
      its(:clauses) { is_expected.to eq(["active_fedora_model_ssi:(Component OR Attachment OR Target)"]) }
    end

    describe "class methods" do
      describe "is_governed_by(pid)" do
        subject { Filters.is_governed_by("test:1") }
        its(:clauses) { is_expected.to eq(["{!term f=is_governed_by_ssim}info:fedora/test:1"]) }
      end
    end

  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
ddr-models-2.4.0.rc2 spec/index/filters_spec.rb
ddr-models-2.4.0.rc1 spec/index/filters_spec.rb
ddr-models-2.3.2 spec/index/filters_spec.rb
ddr-models-2.3.1 spec/index/filters_spec.rb
ddr-models-2.3.0 spec/index/filters_spec.rb
ddr-models-2.2.0 spec/index/filters_spec.rb
ddr-models-2.1.3 spec/index/filters_spec.rb
ddr-models-2.1.2 spec/index/filters_spec.rb
ddr-models-2.1.1 spec/index/filters_spec.rb
ddr-models-2.1.0 spec/index/filters_spec.rb
ddr-models-2.1.0.rc2 spec/index/filters_spec.rb
ddr-models-2.1.0.rc1 spec/index/filters_spec.rb