Sha256: ddef7813558518033e8ff58dde09579c4d52e2392a3a181357209781ee3b712e
Contents?: true
Size: 613 Bytes
Versions: 30
Compression:
Stored size: 613 Bytes
Contents
require 'spec_helper' describe BlacklightHelper do describe "document_partial_name" do it "Should lop off everything before the first colin after the slash" do @config = Blacklight::Configuration.new.configure do |config| config.show.display_type = 'has_model_s' end helper.stub(:blacklight_config).and_return(@config) helper.document_partial_name('has_model_s' => ["info:fedora/afmodel:Presentation"]).should == "presentation" helper.document_partial_name('has_model_s' => ["info:fedora/hull-cModel:genericContent"]).should == "generic_content" end end end
Version data entries
30 entries across 30 versions & 1 rubygems