rename old padrino tests, remove sinatra tests, use metadata hooks for frontmatter and liquid
This commit is contained in:
parent
c82a40dde5
commit
0e5ce50787
13 changed files with 117 additions and 156 deletions
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue