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

Version Path
middleman-0.9.17 spec/cache_buster_spec.rb
middleman-0.9.16 spec/cache_buster_spec.rb
middleman-0.9.15 spec/cache_buster_spec.rb
middleman-0.9.14 spec/cache_buster_spec.rb
middleman-0.9.13 spec/cache_buster_spec.rb
middleman-0.9.12 spec/cache_buster_spec.rb
middleman-0.9.11 spec/cache_buster_spec.rb
middleman-0.9.10 spec/cache_buster_spec.rb
middleman-0.9.9 spec/cache_buster_spec.rb