Sha256: b12f9b9e24d44e2dc4ff90537bd7c9743aa1b5e8b628eeb52fc342f82b684c7b

Contents?: true

Size: 608 Bytes

Versions: 1

Compression:

Stored size: 608 Bytes

Contents

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

1 entries across 1 versions & 1 rubygems

Version Path
geoblacklight-2.4.0 spec/models/concerns/geoblacklight/solr_document/citation_spec.rb