Sha256: 73dca790fb3040088320edaf46099b60583cba6a7e92124e2407bf0187740940

Contents?: true

Size: 886 Bytes

Versions: 6

Compression:

Stored size: 886 Bytes

Contents

# -*- encoding : utf-8 -*-
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe ApplicationController do
  include Devise::TestHelpers

# HEAD CONTENT
  describe "head content from variables" do

    describe "#default_html_head" do
      it "should setup js and css defaults" do   
        Deprecation.silence(Blacklight::LegacyControllerMethods) do             
          controller.send(:default_html_head)

          # by default, these should be empty, but left in for backwards compatibility 
          controller.javascript_includes.should be_empty
          controller.stylesheet_links.should be_empty
        end
      end
    end

    describe "#blacklight_config" do

      it "should provide a default blacklight_config everywhere" do
        controller.blacklight_config.should == CatalogController.blacklight_config
      end
    end

  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
blacklight-4.7.0 spec/controllers/application_controller_spec.rb
blacklight-4.7.0.pre1 spec/controllers/application_controller_spec.rb
blacklight-4.6.3 spec/controllers/application_controller_spec.rb
blacklight-4.6.2 spec/controllers/application_controller_spec.rb
blacklight-4.6.1 spec/controllers/application_controller_spec.rb
blacklight-4.6.0 spec/controllers/application_controller_spec.rb