Sha256: 10cfa52bb267cb8bdf4851aa117565ec5bbd868885006da02363b489ef5b1cb8

Contents?: true

Size: 798 Bytes

Versions: 16

Compression:

Stored size: 798 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                
        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

    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

16 entries across 16 versions & 1 rubygems

Version Path
blacklight-4.5.0 spec/controllers/application_controller_spec.rb
blacklight-4.5.0.rc1 spec/controllers/application_controller_spec.rb
blacklight-4.4.2 spec/controllers/application_controller_spec.rb
blacklight-4.4.1 spec/controllers/application_controller_spec.rb
blacklight-4.4.0 spec/controllers/application_controller_spec.rb
blacklight-4.3.0 spec/controllers/application_controller_spec.rb
blacklight-4.2.2 spec/controllers/application_controller_spec.rb
blacklight-4.2.1 spec/controllers/application_controller_spec.rb
blacklight-4.2.0 spec/controllers/application_controller_spec.rb
blacklight-4.1.0 test_support/spec/controllers/application_controller_spec.rb
blacklight-4.0.1 test_support/spec/controllers/application_controller_spec.rb
blacklight-4.0.0 test_support/spec/controllers/application_controller_spec.rb
blacklight-4.0.0.rc2 test_support/spec/controllers/application_controller_spec.rb
blacklight-4.0.0.rc1 test_support/spec/controllers/application_controller_spec.rb
blacklight-4.0.0.pre7 test_support/spec/controllers/application_controller_spec.rb
blacklight-4.0.0.pre6 test_support/spec/controllers/application_controller_spec.rb