Sha256: 9425e2212d18d6f7528420288008b411c8278b494ab58ae2b85ad96d27475e81
Contents?: true
Size: 945 Bytes
Versions: 2
Compression:
Stored size: 945 Bytes
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"> <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> <% @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 %> </table> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cucumber-in-the-yard-1.7.2 | lib/templates/default/feature/html/outline.erb |
cucumber-in-the-yard-1.7.1 | lib/templates/default/feature/html/outline.erb |