mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
7 lines
No EOL
271 B
Ruby
7 lines
No EOL
271 B
Ruby
Given /^I am using an asset host$/ do
|
|
Middleman::Server.activate :asset_host
|
|
Middleman::Server.set :asset_host do |asset|
|
|
"http://assets%d.example.com" % (asset.hash % 4)
|
|
end
|
|
@browser = Rack::Test::Session.new(Rack::MockSession.new(Middleman::Server.new))
|
|
end |