Sha256: 5bbc6978fe9041e7ba6205b94aa62731a98c202fa8adf6d906a86b959461e8e0

Contents?: true

Size: 688 Bytes

Versions: 12

Compression:

Stored size: 688 Bytes

Contents

Given /^page "([^\"]*)" has layout "([^\"]*)"$/ do |url, layout|
  Middleman::Base.set :root, File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "spec", "fixtures", "sample")
  Middleman::Base.page(url, :layout => layout.to_sym)
  @browser = Rack::Test::Session.new(Rack::MockSession.new(Middleman::Base.new))
end

Given /^"([^\"]*)" with_layout block has layout "([^\"]*)"$/ do |url, layout|
  Middleman::Base.set :root, File.join(File.dirname(File.dirname(File.dirname(__FILE__))), "spec", "fixtures", "sample")
  Middleman::Base.with_layout(:layout => layout.to_sym) do
    page(url)
  end
  @browser = Rack::Test::Session.new(Rack::MockSession.new(Middleman::Base.new))
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
middleman-0.99.0.pre features/step_definitions/page_layout_steps.rb
middleman-0.9.0.pre features/step_definitions/page_layout_steps.rb
middleman-0.14.1 features/step_definitions/page_layout_steps.rb
middleman-0.14.0 features/step_definitions/page_layout_steps.rb
middleman-0.14.0.pre2 features/step_definitions/page_layout_steps.rb
middleman-0.13.2.pre features/step_definitions/page_layout_steps.rb
middleman-0.13.1 features/step_definitions/page_layout_steps.rb
middleman-0.12.2 features/step_definitions/page_layout_steps.rb
middleman-0.12.1 features/step_definitions/page_layout_steps.rb
middleman-0.12.0.pre3 features/step_definitions/page_layout_steps.rb
middleman-0.12.0.pre2 features/step_definitions/page_layout_steps.rb
middleman-0.12.0.pre features/step_definitions/page_layout_steps.rb