1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00
middleman--middleman/features/step_definitions/asset_host_steps.rb

9 lines
230 B
Ruby
Raw Normal View History

2010-02-02 20:03:43 -05:00
Given /^I am using an asset host$/ do
@initialize_commands ||= []
@initialize_commands << lambda {
activate :asset_host
set :asset_host do |asset|
"http://assets%d.example.com" % (asset.hash % 4)
end
}
2010-02-02 20:03:43 -05:00
end