Sha256: 36bcf98bbaf7e30b552463a71acf1120239d0a2fdddcc109265b530ac80d27dd

Contents?: true

Size: 971 Bytes

Versions: 10

Compression:

Stored size: 971 Bytes

Contents

%h2
  %a{"href" => '../'}
    = @feature["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

10 entries across 10 versions & 1 rubygems

Version Path
wally-0.0.29 lib/wally/views/scenario.haml
wally-0.0.28 lib/wally/views/scenario.haml
wally-0.0.27 lib/wally/views/scenario.haml
wally-0.0.26 lib/wally/views/scenario.haml
wally-0.0.25 lib/wally/views/scenario.haml
wally-0.0.24 lib/wally/views/scenario.haml
wally-0.0.22 lib/wally/views/scenario.haml
wally-0.0.21 lib/wally/views/scenario.haml
wally-0.0.20 lib/wally/views/scenario.haml
wally-0.0.19 lib/wally/views/scenario.haml