Sha256: 6c01492cf0ccf8c9036b0fc42173a4a6397dd1331f257c23616f9b47b2c02a61
Contents?: true
Size: 654 Bytes
Versions: 9
Compression:
Stored size: 654 Bytes
Contents
require File.join(File.dirname(__FILE__), "spec_helper") base = ::Middleman::Base base.set :root, File.join(File.dirname(__FILE__), "fixtures", "sample") describe "Cache Buster Feature" do before do base.disable :cache_buster base.init!(true) @app = base.new end it "should not append query string if off" do @app.asset_url("stylesheets/static.css").should_not include("?") end end describe "Cache Buster Feature" do before do base.enable :cache_buster base.init!(true) @app = base.new end it "should append query string if on" do @app.asset_url("stylesheets/static.css").should include("?") end end
Version data entries
9 entries across 9 versions & 1 rubygems