Sha256: f620df6ae73373ca3d1295daa7313318edf777351c7600408ae1cf99aa99c959

Contents?: true

Size: 638 Bytes

Versions: 20

Compression:

Stored size: 638 Bytes

Contents

# frozen_string_literal: true
require 'spec_helper'

describe Geoblacklight::SolrDocument::Citation do
  describe '#geoblacklight_citation' do
    let(:fixture) { JSON.parse(read_fixture('solr_documents/restricted-line.json')) }
    let(:document) { SolrDocument.new(fixture) }

    it 'creates a citation' do
      expect(document.geoblacklight_citation('http://example.com'))
        .to eq 'United States. National Oceanic and Atmospheric Administration. Circuit Rider Productions. (2002). 10 Meter Contours: Russian River Basin, California. [Shapefile]. Circuit Rider Productions. Retrieved from http://example.com'
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
geoblacklight-3.8.1 spec/models/concerns/geoblacklight/solr_document/citation_spec.rb
geoblacklight-3.8.0 spec/models/concerns/geoblacklight/solr_document/citation_spec.rb
geoblacklight-4.0.0 spec/models/concerns/geoblacklight/solr_document/citation_spec.rb
geoblacklight-4.0.0.pre.rc3 spec/models/concerns/geoblacklight/solr_document/citation_spec.rb
geoblacklight-3.7.0 spec/models/concerns/geoblacklight/solr_document/citation_spec.rb
geoblacklight-4.0.0.pre.rc2 spec/models/concerns/geoblacklight/solr_document/citation_spec.rb
geoblacklight-4.0.0.pre.rc1 spec/models/concerns/geoblacklight/solr_document/citation_spec.rb
geoblacklight-3.6.0 spec/models/concerns/geoblacklight/solr_document/citation_spec.rb
geoblacklight-3.5.0 spec/models/concerns/geoblacklight/solr_document/citation_spec.rb
geoblacklight-4.0.0.pre.alpha.3 spec/models/concerns/geoblacklight/solr_document/citation_spec.rb
geoblacklight-4.0.0.pre.alpha.2 spec/models/concerns/geoblacklight/solr_document/citation_spec.rb
geoblacklight-4.0.0.pre.alpha.1 spec/models/concerns/geoblacklight/solr_document/citation_spec.rb
geoblacklight-4.0.0.pre.alpha spec/models/concerns/geoblacklight/solr_document/citation_spec.rb
geoblacklight-3.4.0 spec/models/concerns/geoblacklight/solr_document/citation_spec.rb
geoblacklight-3.3.1 spec/models/concerns/geoblacklight/solr_document/citation_spec.rb
geoblacklight-3.3.0 spec/models/concerns/geoblacklight/solr_document/citation_spec.rb
geoblacklight-3.2.0 spec/models/concerns/geoblacklight/solr_document/citation_spec.rb
geoblacklight-3.1.0 spec/models/concerns/geoblacklight/solr_document/citation_spec.rb
geoblacklight-3.0.1 spec/models/concerns/geoblacklight/solr_document/citation_spec.rb
geoblacklight-3.0.0 spec/models/concerns/geoblacklight/solr_document/citation_spec.rb