Sha256: b32824e4842b867b533a83c938ff1e8c8bc529e1bb4afffea83633f333a397a0
Contents?: true
Size: 1006 Bytes
Versions: 1
Compression:
Stored size: 1006 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 match_array ['one', 'two'] } end describe "temporal" do let(:attributes) { { Solrizer.solr_name('temporal') => ['one', 'two'] } } subject { document.temporal } it { is_expected.to match_array ['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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
geo_concerns-0.0.7 | spec/models/solr_document_spec.rb |