1
0
Fork 0
mirror of https://github.com/middleman/middleman.git synced 2022-11-09 12:20:27 -05:00
middleman--middleman/features/step_definitions/page_layout_steps.rb

13 lines
395 B
Ruby
Raw Normal View History

2009-11-22 18:37:11 -05:00
Given /^page "([^\"]*)" has layout "([^\"]*)"$/ do |url, layout|
@server ||= Middleman.server
@server.set :show_exceptions, false
@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|
@server ||= Middleman.server
@server.set :show_exceptions, false
@server.with_layout(layout.to_sym) do
page(url)
2009-11-22 18:37:11 -05:00
end
end