Sha256: a212c618dc2f0f34541eba7e034ea8694fbb6f9a745b5dc587cb438cb6ac0680
Contents?: true
Size: 988 Bytes
Versions: 6
Compression:
Stored size: 988 Bytes
Contents
require 'spec_helper' describe SolrDocument do let(:document) { described_class.new(attributes) } describe "spatial" do let(:attributes) { { Solrizer.solr_name('spatial') => ['one', 'two'] } } subject { document.spatial } it { is_expected.to eq ['one', 'two'] } end describe "temporal" do let(:attributes) { { Solrizer.solr_name('temporal') => ['one', 'two'] } } subject { document.temporal } it { is_expected.to eq ['one', 'two'] } end describe "issued" do let(:attributes) { { Solrizer.solr_name('issued') => 'one' } } subject { document.issued } it { is_expected.to eq 'one' } end describe "coverage" do let(:attributes) { { Solrizer.solr_name('coverage') => 'one' } } subject { document.coverage } it { is_expected.to eq 'one' } end describe "provenance" do let(:attributes) { { Solrizer.solr_name('provenance') => 'one' } } subject { document.provenance } it { is_expected.to eq 'one' } end end
Version data entries
6 entries across 6 versions & 1 rubygems