Sha256: 6794db0a51985326c849cd37d7fb08e75ca254e2dc8adb102050d2cb925b2ae7

Contents?: true

Size: 965 Bytes

Versions: 3

Compression:

Stored size: 965 Bytes

Contents

<% @scenario.steps.each_with_index do |step,index| %>
  <% @step = step %>


  <div <%= "id='#{@id}Step#{index}'" %> class="step <%= (index + 1) % 2 == 0 ? 'even' : 'odd' %>">
    <span class="predicate"><%= step.keyword %></span>

    <% if @scenario.outline? %>
      <%= step.value %>
    <% else %>

    <% if step.definition %>
    <span class="defined">
      <%=  highlight_matches(step) %>
      <div class="details">
        <a href="<%= url_for step.definition %>"><div class="valid">&nbsp;</div></a>
      </div>
    </span>
    <% else %>
    <span class="undefined">
      <%= h step.value %>
      <div class="details">
        <a href="<%= url_for YARD::CodeObjects::Cucumber::CUCUMBER_STEPTRANSFORM_NAMESPACE %>#undefined_steps">
          <div class="invalid">&nbsp;</div>
        </a>  
      </div>
    </span>
    <% end %>

    <% end %>
  </div>

  <%= erb(:table) if step.has_table? %>
  <%= erb(:pystring) if step.has_text? %>


  <% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cucumber-in-the-yard-1.7.0 lib/templates/default/feature/html/steps.erb
cucumber-in-the-yard-1.6.4 lib/templates/default/feature/html/steps.erb
cucumber-in-the-yard-1.6.3 lib/templates/default/feature/html/steps.erb