Sha256: 9df5eead741b76d8b63ac9f909cb591f19b4e609d735cd22158da42a57d2c6b0

Contents?: true

Size: 758 Bytes

Versions: 5

Compression:

Stored size: 758 Bytes

Contents

require "spec_helper"

module Refinery
  describe "custom" do
    login_refinery_user

    context "javascripts" do
      before do
        ::Refinery::Core.clear_javascripts!
      end

      it "should be rendered when specified" do
        ::Refinery::Core.config.register_javascript('custom_js')
        visit refinery.admin_dashboard_path
        page.body.include?('custom_js.js').should be
      end
    end

    context "stylesheets" do
      before do
        ::Refinery::Core.clear_stylesheets!
      end

      it "should be rendered when specified" do
        ::Refinery::Core.config.register_stylesheet('custom_css')
        visit refinery.admin_dashboard_path
        page.body.include?('custom_css.css').should be
      end
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
refinerycms-core-2.0.10 spec/requests/refinery/admin/custom_assets_spec.rb
refinerycms-core-2.0.9 spec/requests/refinery/admin/custom_assets_spec.rb
refinerycms-core-2.0.8 spec/requests/refinery/admin/custom_assets_spec.rb
refinerycms-core-2.0.7 spec/requests/refinery/admin/custom_assets_spec.rb
refinerycms-core-2.0.6 spec/requests/refinery/admin/custom_assets_spec.rb