Sha256: a30db6daa4be402afef1093bee81b17a4459ca46bcaedbc7b16ea1d644773d6d

Contents?: true

Size: 887 Bytes

Versions: 3

Compression:

Stored size: 887 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
describe ApplicationController do

# HEAD CONTENT
  describe "head content from variables" do

    describe "#default_html_head" do
      before(:each) do
        controller.send(:default_html_head)
      end
      it "should setup js and css defaults" do                
        controller.javascript_includes.should include(["blacklight/jquery-1.4.2.min.js", "blacklight/jquery-ui-1.8.1.custom.min.js", "blacklight/blacklight"])#find do |item|
        #  item == ["jquery-1.4.2.min.js", "jquery-ui-1.7.2.custom.min.js", "blacklight", "application", "accordion", "lightbox", {:plugin=>:blacklight}]
        #end

        controller.stylesheet_links.should include(["blacklight/yui", "blacklight/jquery/ui-lightness/jquery-ui-1.8.1.custom.css", "blacklight/blacklight", {:media=>"all"}])
      end
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
blacklight-3.0.0pre4 test_support/spec/controllers/application_controller_spec.rb
blacklight-3.0.0pre3 test_support/spec/controllers/application_controller_spec.rb
blacklight-3.0pre2 test_support/spec/controllers/application_controller_spec.rb