Sha256: bf754250fdeb1263960737b864b38681be0b10e537c0183141105eb27081fd44
Contents?: true
Size: 770 Bytes
Versions: 9
Compression:
Stored size: 770 Bytes
Contents
require 'rack/test' require File.join(File.dirname(__FILE__), "spec_helper") base = ::Middleman::Base base.set :root, File.join(File.dirname(__FILE__), "fixtures", "sample") describe "Relative Assets Feature" do it "should not contain ../ if off" do base.disable :relative_assets browser = Rack::Test::Session.new(Rack::MockSession.new(base.new)) browser.get("/stylesheets/relative_assets.css") browser.last_response.body.should_not include("../") end end describe "Relative Assets Feature" do it "should contain ../ if on" do base.enable :relative_assets browser = Rack::Test::Session.new(Rack::MockSession.new(base.new)) browser.get("/stylesheets/relative_assets.css") browser.last_response.body.should include("../") end end
Version data entries
9 entries across 9 versions & 1 rubygems