Sha256: 250b6de2fea009acb32f9b9cdbaa03079751c15de355ed0130ddf153ba2adc24

Contents?: true

Size: 613 Bytes

Versions: 8

Compression:

Stored size: 613 Bytes

Contents

RSpec.shared_examples "a licensable object" do
  let(:object) { described_class.new }
  before do
    object.license_title = "License Title"
    object.license_description = "License Description"
    object.license_url = "http://library.duke.edu"
  end
  describe "indexing" do
    it "should index the license terms" do
      expect(object.to_solr[Ddr::IndexFields::LICENSE_TITLE]).to eq("License Title")
      expect(object.to_solr[Ddr::IndexFields::LICENSE_DESCRIPTION]).to eq("License Description")
      expect(object.to_solr[Ddr::IndexFields::LICENSE_URL]).to eq("http://library.duke.edu")
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
ddr-models-1.13.2 spec/support/shared_examples_for_licensable.rb
ddr-models-1.13.1 spec/support/shared_examples_for_licensable.rb
ddr-models-1.13.0 spec/support/shared_examples_for_licensable.rb
ddr-models-1.11.8 spec/support/shared_examples_for_licensable.rb
ddr-models-1.12.3 spec/support/shared_examples_for_licensable.rb
ddr-models-1.11.7 spec/support/shared_examples_for_licensable.rb
ddr-models-1.12.2 spec/support/shared_examples_for_licensable.rb
ddr-models-1.11.6 spec/support/shared_examples_for_licensable.rb