Sha256: 3251306d53069ba072c68034772a68b60ecd4e4d30a188614d52e4855b380d7c

Contents?: true

Size: 1.43 KB

Versions: 14

Compression:

Stored size: 1.43 KB

Contents

<% @scenario.scenarios.each_with_index do |scenario,example_index| %>
  <div style="display: none;" class="steps <%= "example#{example_index + 1}" %>">
    <% @scenario_outline = @scenario ; @scenario = scenario ; @steps = scenario.steps %>
    <%= erb(:steps) %>
    <% @scenario = @scenario_outline %>
  </div>
<% end %>

<div class="outline">
  
  <% if @scenario.examples? %>
  <div class="keyword"> <%= h @scenario.example_keyword %></div>
  <table>
    <thead>
      <tr>
        <% @scenario.example_headers.each_with_index do |header,header_index| %>
          <th><%= h(header) %></th>
        <% end %>
      </tr>
    </thead>
    <% unless @scenario.example_data.empty? %>
      <% @scenario.example_data.each_with_index do |row,row_index| %>
      <tr class="<%= (row_index + 1) % 2 == 0 ? "even example#{row_index +1}" : "odd example#{row_index +1}" %>">
        <% row.each_with_index do |column,column_index| %>
          <td><%= h(column.to_s.strip) %></td>
        <% end %>
      </tr>
      <% end %>
    <% else %>
      <!-- Scenario Outline example table is empty -->
      <tr class="odd">
        <td colspan="<%= @scenario.example_headers.length %>" style="text-align: center;">
          No Examples Defined
        </td>
      </tr>
    <% end %>
  </table>
  <% else %>
  <div class="keyword">No Example Table Defined</div>
  <div class="keyword suggestion developer">[!] Did you mean to create a Scenario?</div>
  <% end %>
</div>

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
yard-cucumber-2.1.3 lib/templates/default/feature/html/outline.erb
yard-cucumber-2.1.2 lib/templates/default/feature/html/outline.erb
yard-cucumber-2.1.1 lib/templates/default/feature/html/outline.erb
yard-cucumber-2.1.0 lib/templates/default/feature/html/outline.erb
yard-cucumber-2.0.3 lib/templates/default/feature/html/outline.erb
yard-cucumber-2.0.2 lib/templates/default/feature/html/outline.erb
yard-cucumber-2.0.1 lib/templates/default/feature/html/outline.erb
yard-cucumber-2.0.0 lib/templates/default/feature/html/outline.erb
cucumber-in-the-yard-1.7.8 lib/templates/default/feature/html/outline.erb
cucumber-in-the-yard-1.7.7 lib/templates/default/feature/html/outline.erb
cucumber-in-the-yard-1.7.6 lib/templates/default/feature/html/outline.erb
cucumber-in-the-yard-1.7.5 lib/templates/default/feature/html/outline.erb
cucumber-in-the-yard-1.7.4 lib/templates/default/feature/html/outline.erb
cucumber-in-the-yard-1.7.3 lib/templates/default/feature/html/outline.erb