middleman/features/step_definitions/page_layout_steps.rb
2011-07-27 14:14:22 -07:00

11 lines
319 B
Ruby

Given /^page "([^\"]*)" has layout "([^\"]*)"$/ do |url, layout|
@server ||= Middleman.server
@server.page(url, :layout => layout.to_sym)
end
Given /^"([^\"]*)" with_layout block has layout "([^\"]*)"$/ do |url, layout|
@server ||= Middleman.server
@server.with_layout(layout.to_sym) do
page(url)
end
end