add tests for relative custom image paths. fixes #59
This commit is contained in:
parent
527fa3160f
commit
5c2defac6d
7 changed files with 57 additions and 26 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue