spec/specset_spec.rb in marcspec-0.6.0 vs spec/specset_spec.rb in marcspec-0.7.0
- old
+ new
@@ -63,11 +63,11 @@
h['title'].should.equal @title
h['titleA'].should.equal @titleA
end
it "allows customs that reference previous work" do
- @speclist << {:solrField=>'titleSort', :module=>A::B, :methodSymbol=>:sortable, :methodArgs=>['title']}
+ @speclist << {:solrField=>'titleSort', :module=>A::B, :functionSymbol=>:sortable, :methodArgs=>['title']}
ss = MARCSpec::SpecSet.new
ss.buildSpecsFromList(@speclist)
h = ss.hash_from_marc @one
h['title'].should.equal @title
h['titleSort'].should.equal @title.map{|a| a.gsub(/\p{Punct}/, ' ').gsub(/\s+/, ' ').strip.downcase}
@@ -84,10 +84,10 @@
end
it "should allow multi-headed custom fields" do
@speclist << {:solrField => ['one', 'two', 'letters'],
:module => A::B,
- :methodSymbol => :three_value_custom,
+ :functionSymbol => :three_value_custom,
}
ss = MARCSpec::SpecSet.new
ss.buildSpecsFromList(@speclist)
h = ss.hash_from_marc @one
h['one'].should.equal [1]
\ No newline at end of file