add tests for relative custom image paths. fixes #59

This commit is contained in:
Thomas Reynolds 2011-07-23 22:49:32 -07:00
parent 527fa3160f
commit 5c2defac6d
7 changed files with 57 additions and 26 deletions

View file

@ -1,9 +1,7 @@
Given /^I am using an asset host$/ do
sandbox_server = Middleman.server do
activate :asset_host
set :asset_host do |asset|
"http://assets%d.example.com" % (asset.hash % 4)
end
@server ||= Middleman.server
@server.activate :asset_host
@server.set :asset_host do |asset|
"http://assets%d.example.com" % (asset.hash % 4)
end
@browser = Rack::Test::Session.new(Rack::MockSession.new(sandbox_server.new))
end