middleman/features/step_definitions/asset_host_steps.rb

8 lines
237 B
Ruby
Raw Normal View History

2010-02-03 02:03:43 +01:00
Given /^I am using an asset host$/ do
@server ||= Middleman.server
@server.set :show_exceptions, false
@server.activate :asset_host
@server.set :asset_host do |asset|
"http://assets%d.example.com" % (asset.hash % 4)
2010-02-03 02:03:43 +01:00
end
end