2010-02-02 20:03:43 -05:00
|
|
|
Given /^I am using an asset host$/ do
|
2011-07-24 01:49:32 -04:00
|
|
|
@server ||= Middleman.server
|
|
|
|
@server.activate :asset_host
|
|
|
|
@server.set :asset_host do |asset|
|
|
|
|
"http://assets%d.example.com" % (asset.hash % 4)
|
2010-02-02 20:03:43 -05:00
|
|
|
end
|
|
|
|
end
|