Sha256: a948e0e2d4c1be02a18f2c85bb8b34f2b0c2223141711d2a0ba48dbcc43fda96
Contents?: true
Size: 861 Bytes
Versions: 8
Compression:
Stored size: 861 Bytes
Contents
require "spec_helper" module Refinery describe "custom", :type => :feature do refinery_login after do Refinery::Core.javascripts.reject! { |j| %w[custom_js].include?(j) } Refinery::Core.stylesheets.reject! { |s| %w[custom_css].include?(s.path) } end context "javascripts" do before do ::Refinery::Core.config.register_javascript('custom_js') end it "should be rendered when specified" do visit Refinery::Core.backend_path expect(page.body.include?('custom_js.js')).to be end end context "stylesheets" do before do ::Refinery::Core.config.register_stylesheet('custom_css') end it "should be rendered when specified" do visit Refinery::Core.backend_path expect(page.body).to include('custom_css.css') end end end end
Version data entries
8 entries across 8 versions & 1 rubygems