Sha256: 0d091a39ec9f8c563c2308e1639d3cd149ebafe3b31496462e1dbff7ac0085ea
Contents?: true
Size: 730 Bytes
Versions: 8
Compression:
Stored size: 730 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 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
8 entries across 8 versions & 1 rubygems