Sha256: c674d99b7a67590a43b5ce3bc0a58800ebeda1e2e0494eed9692e88876ba7381

Contents?: true

Size: 615 Bytes

Versions: 7

Compression:

Stored size: 615 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 == "presentations"
      helper.document_partial_name('has_model_s' => ["info:fedora/hull-cModel:genericContent"]).should == "generic_contents" 
    end
  end
  
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
hydra-core-5.0.0.pre8 spec/helpers/blacklight_helper_spec.rb
hydra-core-5.0.0.pre7 spec/helpers/blacklight_helper_spec.rb
hydra-core-5.0.0.pre6 spec/helpers/blacklight_helper_spec.rb
hydra-core-5.0.0.pre4 spec/helpers/blacklight_helper_spec.rb
hydra-core-5.0.0.pre3 spec/helpers/blacklight_helper_spec.rb
hydra-core-5.0.0.pre2 spec/helpers/blacklight_helper_spec.rb
hydra-core-5.0.0.pre1 spec/helpers/blacklight_helper_spec.rb