2009-11-22 18:37:11 -05:00
|
|
|
Given /^page "([^\"]*)" has layout "([^\"]*)"$/ do |url, layout|
|
2011-07-24 01:49:32 -04:00
|
|
|
@server ||= Middleman.server
|
2011-09-09 02:06:22 -04:00
|
|
|
@server.set :show_exceptions, false
|
2011-07-24 01:49:32 -04:00
|
|
|
@server.page(url, :layout => layout.to_sym)
|
2009-11-22 18:37:11 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
Given /^"([^\"]*)" with_layout block has layout "([^\"]*)"$/ do |url, layout|
|
2011-07-24 01:49:32 -04:00
|
|
|
@server ||= Middleman.server
|
2011-09-09 02:06:22 -04:00
|
|
|
@server.set :show_exceptions, false
|
2011-07-24 01:49:32 -04:00
|
|
|
@server.with_layout(layout.to_sym) do
|
|
|
|
page(url)
|
2009-11-22 18:37:11 -05:00
|
|
|
end
|
|
|
|
end
|