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