1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00
middleman--middleman/spec/cache_buster_spec.rb
tdreyno 58d6fc94ea Revert "update docs"
This reverts commit 43ac01af5c.
2009-10-22 17:25:15 -07:00

18 lines
No EOL
521 B
Ruby

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
it "should not append query string if off" do
base.disable :cache_buster
base.new
base.asset_url("stylesheets/static.css").should_not include("?")
end
it "should append query string if on" do
base.enable :cache_buster
base.new
base.asset_url("stylesheets/static.css").should include("?")
end
end