Given /^page "([^\"]*)" has layout "([^\"]*)"$/ do |url, layout| @server ||= Middleman.server @server.set :show_exceptions, false @server.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 end