Sha256: e7321309037bdf2e15f30445f4c40466d971aedc4c2b1e61383f5fc63c3c8751
Contents?: true
Size: 495 Bytes
Versions: 5
Compression:
Stored size: 495 Bytes
Contents
require 'spec_helper' describe Solrizer::FieldMapper::Default do describe "#pbcore_date" do it "should return valid dates from only partial ones" do Solrizer::FieldMapper::Default.pbcore_date('2003').should == "2003-01-01T00:00:00Z" Solrizer::FieldMapper::Default.pbcore_date('2009-07').should == "2009-07-01T00:00:00Z" end it "should return empty strings and not dates" do Solrizer::FieldMapper::Default.pbcore_date('').should be_empty end end end
Version data entries
5 entries across 5 versions & 1 rubygems