middleman/features/step_definitions/asset_host_steps.rb
2011-07-23 22:49:32 -07:00

7 lines
No EOL
199 B
Ruby

Given /^I am using an asset host$/ do
@server ||= Middleman.server
@server.activate :asset_host
@server.set :asset_host do |asset|
"http://assets%d.example.com" % (asset.hash % 4)
end
end