Sha256: 99e5a8c070fbcf722b3395086ceb5cabd30b1cf89fda048f947daf7e264e7dc2

Contents?: true

Size: 285 Bytes

Versions: 5

Compression:

Stored size: 285 Bytes

Contents

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
middleman-2.0.0.rc8 features/step_definitions/asset_host_steps.rb
middleman-2.0.0.rc7 features/step_definitions/asset_host_steps.rb
middleman-2.0.0.rc6 features/step_definitions/asset_host_steps.rb
middleman-2.0.0.rc5 features/step_definitions/asset_host_steps.rb
middleman-2.0.0.rc4 features/step_definitions/asset_host_steps.rb