Sha256: e7d0f8c00567f2af4e87db6d179225113f4854a02eebcc828f49fd3bf9a18525
Contents?: true
Size: 742 Bytes
Versions: 11
Compression:
Stored size: 742 Bytes
Contents
require File.join( File.dirname(__FILE__), "..", "spec_helper" ) describe Solrizer::FieldNameMapper do before(:all) do class TestFieldNameMapper include Solrizer::FieldNameMapper end end describe "#mappings" do it "should return at least an id_field value" do TestFieldNameMapper.id_field.should == "id" end end describe '#solr_name' do it "should generate solr field names" do TestFieldNameMapper.solr_name(:active_fedora_model, :symbol).should == "active_fedora_model_s" end end describe ".solr_name" do it "should generate solr field names" do TestFieldNameMapper.new.solr_name(:active_fedora_model, :symbol).should == "active_fedora_model_s" end end end
Version data entries
11 entries across 11 versions & 1 rubygems