rename old padrino tests, remove sinatra tests, use metadata hooks for frontmatter and liquid

This commit is contained in:
Thomas Reynolds 2011-11-18 13:38:18 -08:00
parent c82a40dde5
commit 0e5ce50787
13 changed files with 117 additions and 156 deletions

View file

@ -1,8 +1,9 @@
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)
end
@initialize_commands ||= []
@initialize_commands << lambda {
activate :asset_host
set :asset_host do |asset|
"http://assets%d.example.com" % (asset.hash % 4)
end
}
end