2009-11-23 00:37:11 +01:00
|
|
|
Given /^page "([^\"]*)" has layout "([^\"]*)"$/ do |url, layout|
|
2011-11-18 22:38:18 +01:00
|
|
|
@initialize_commands ||= []
|
|
|
|
@initialize_commands << lambda {
|
|
|
|
page(url, :layout => layout.to_sym)
|
|
|
|
}
|
2009-11-23 00:37:11 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
Given /^"([^\"]*)" with_layout block has layout "([^\"]*)"$/ do |url, layout|
|
2011-11-18 22:38:18 +01:00
|
|
|
@initialize_commands ||= []
|
|
|
|
@initialize_commands << lambda {
|
|
|
|
with_layout(layout.to_sym) do
|
|
|
|
page(url)
|
|
|
|
end
|
|
|
|
}
|
2009-11-23 00:37:11 +01:00
|
|
|
end
|