middleman/features/step_definitions/asset_host_steps.rb
2010-02-02 17:06:37 -08:00

6 lines
226 B
Ruby

Given /^I am using an asset host$/ do
Middleman::Base.set :asset_host do |asset|
"http://assets%d.example.com" % (asset.hash % 4)
end
@browser = Rack::Test::Session.new(Rack::MockSession.new(Middleman::Base.new))
end