Sha256: f2b04e29f1a647f87f4fd0bc0b73891d788a3261c7f628503261d69a85c79fac
Contents?: true
Size: 945 Bytes
Versions: 5
Compression:
Stored size: 945 Bytes
Contents
require 'helpers/boot' describe "Forced dependency" do before(:all) do Sprockets::Preload.precompiles += ["forced/forced.js"] end after(:all) do Sprockets::Preload.precompiles -= ["forced/forced.js"] end it "serves detached" do Sprockets::Preload.environment['sprockets/preload/assets'].source.should == "test1\n;\ntest2\n;\n\n" end context "inlined", inline: true do it "keeps inlines" do Sprockets::Preload.environment['forced/forced'].source.should_not include("test1", "test2") Sprockets::Preload.environment['forced/forced'].source.should_not include("SprocketsPreload.inline = true") end end context "detached", inline: false do it "keeps inlines" do Sprockets::Preload.environment['forced/forced'].source.should_not include("test1", "test2") Sprockets::Preload.environment['forced/forced'].source.should_not include("SprocketsPreload.inline = true") end end end
Version data entries
5 entries across 5 versions & 1 rubygems