Sha256: 8831780b97409c4e63169128769bc50076924957b6fdbfb345bcb9b2e637706b

Contents?: true

Size: 614 Bytes

Versions: 22

Compression:

Stored size: 614 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

22 entries across 22 versions & 1 rubygems

Version Path
ddr-models-2.0.1 spec/support/shared_examples_for_licensable.rb
ddr-models-2.0.0 spec/support/shared_examples_for_licensable.rb
ddr-models-2.0.0.rc6 spec/support/shared_examples_for_licensable.rb
ddr-models-2.0.0.rc5 spec/support/shared_examples_for_licensable.rb
ddr-models-2.0.0.rc4 spec/support/shared_examples_for_licensable.rb
ddr-models-2.0.0.rc3 spec/support/shared_examples_for_licensable.rb
ddr-models-2.0.0.rc2 spec/support/shared_examples_for_licensable.rb
ddr-models-1.17.1 spec/support/shared_examples_for_licensable.rb
ddr-models-2.0.0.rc1 spec/support/shared_examples_for_licensable.rb
ddr-models-2.0.0.pre.5 spec/support/shared_examples_for_licensable.rb
ddr-models-1.17.0 spec/support/shared_examples_for_licensable.rb
ddr-models-2.0.0.pre.4 spec/support/shared_examples_for_licensable.rb
ddr-models-2.0.0.pre.3 spec/support/shared_examples_for_licensable.rb
ddr-models-1.16.2 spec/support/shared_examples_for_licensable.rb
ddr-models-2.0.0.pre.2 spec/support/shared_examples_for_licensable.rb
ddr-models-2.0.0.pre.1 spec/support/shared_examples_for_licensable.rb
ddr-models-1.16.1 spec/support/shared_examples_for_licensable.rb
ddr-models-1.16.0 spec/support/shared_examples_for_licensable.rb
ddr-models-1.15.0 spec/support/shared_examples_for_licensable.rb
ddr-models-1.14.2 spec/support/shared_examples_for_licensable.rb