2010-02-02 17:03:43 -08:00
|
|
|
Given /^I am using an asset host$/ do
|
2011-07-23 22:49:32 -07:00
|
|
|
@server ||= Middleman.server
|
2011-09-08 23:06:22 -07:00
|
|
|
@server.set :show_exceptions, false
|
2011-07-23 22:49:32 -07:00
|
|
|
@server.activate :asset_host
|
|
|
|
@server.set :asset_host do |asset|
|
|
|
|
"http://assets%d.example.com" % (asset.hash % 4)
|
2010-02-02 17:03:43 -08:00
|
|
|
end
|
|
|
|
end
|