Sha256: b7385613fb8a639e23bef212f6e49ac40b3204b5e47c19db2c2ac72d46192cee
Contents?: true
Size: 642 Bytes
Versions: 4
Compression:
Stored size: 642 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! @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! @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
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
middleman-0.9.8 | spec/cache_buster_spec.rb |
middleman-0.9.7 | spec/cache_buster_spec.rb |
middleman-0.9.6 | spec/cache_buster_spec.rb |
middleman-0.9.5 | spec/cache_buster_spec.rb |