Sha256: 2cfcca7c787721a9c2139f52af2e00bd2843d1484c0039c31f67043467887e09

Contents?: true

Size: 979 Bytes

Versions: 11

Compression:

Stored size: 979 Bytes

Contents

%h2
  %a{"href" => '../'}
    = @feature.gherkin["name"]
%h2
  = @scenario["name"]
  - if @scenario["tags"]
    = haml :tag_links, {:locals => {:tags => @scenario["tags"]}, :layout => false}
- if @background
  %h3
    = @background["keyword"] + ":"
  - @background["steps"].each do |step|
    %p
      %span.step-keyword
        &= step["keyword"]
      = step["name"]
- if @scenario["steps"]
  %h3 Steps:
  - @scenario["steps"].each do |step|
    %p
      %span.step-keyword
        = step["keyword"]
      = escape_once(step["name"])
- else
  %p{:class => 'alert-message error'}
    = "Where's Wally? This scenario has no steps!?"
- if @scenario["examples"]
  %h3 Examples:
  %table{:class => 'zebra-striped'}
    - @scenario["examples"].first["rows"].each_with_index do |row, index|
      %tr
        - row["cells"].each do |cell|
          - if index === 0
            %th
              = escape_once(cell)
          - else
            %td
              = escape_once(cell)

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
wally-0.0.40 lib/wally/views/scenario.haml
wally-0.0.39 lib/wally/views/scenario.haml
wally-0.0.38 lib/wally/views/scenario.haml
wally-0.0.37 lib/wally/views/scenario.haml
wally-0.0.36 lib/wally/views/scenario.haml
wally-0.0.35 lib/wally/views/scenario.haml
wally-0.0.34 lib/wally/views/scenario.haml
wally-0.0.33 lib/wally/views/scenario.haml
wally-0.0.32 lib/wally/views/scenario.haml
wally-0.0.31 lib/wally/views/scenario.haml
wally-0.0.30 lib/wally/views/scenario.haml