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,13 +1,15 @@
Given /^page "([^\"]*)" has layout "([^\"]*)"$/ do |url, layout|
@server ||= Middleman.server
@server.set :show_exceptions, false
@server.page(url, :layout => layout.to_sym)
@initialize_commands ||= []
@initialize_commands << lambda {
page(url, :layout => layout.to_sym)
}
end
Given /^"([^\"]*)" with_layout block has layout "([^\"]*)"$/ do |url, layout|
@server ||= Middleman.server
@server.set :show_exceptions, false
@server.with_layout(layout.to_sym) do
page(url)
end
@initialize_commands ||= []
@initialize_commands << lambda {
with_layout(layout.to_sym) do
page(url)
end
}
end