2010-02-03 02:03:43 +01:00
|
|
|
Given /^I am using an asset host$/ do
|
2011-07-13 09:38:04 +02:00
|
|
|
sandbox_server = Middleman.server do
|
|
|
|
activate :asset_host
|
|
|
|
set :asset_host do |asset|
|
|
|
|
"http://assets%d.example.com" % (asset.hash % 4)
|
|
|
|
end
|
2010-02-03 02:03:43 +01:00
|
|
|
end
|
2011-07-13 09:38:04 +02:00
|
|
|
@browser = Rack::Test::Session.new(Rack::MockSession.new(sandbox_server.new))
|
2010-02-03 02:03:43 +01:00
|
|
|
end
|