Sha256: bf1ffd53cc99aa7f95e09add9aaeb696506a0f5bb5854797c2cf2c21934772d0

Contents?: true

Size: 1.13 KB

Versions: 37

Compression:

Stored size: 1.13 KB

Contents

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

  <% if step.comments && step.comments.length > 0 %>
  <div class="comments developer"><%= htmlify_with_newlines step.comments %></div>
  <% end %>
  <div class="step <%= (index + 1) % 2 == 0 ? 'even' : 'odd' %>">
    <span class="predicate"><%= step.keyword %></span>

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

      <% if step.definition %>
        <span class="defined">
          <%=  highlight_matches(step) %>
          <div class="definition developer">
            <a href="<%= url_for step.definition %>"><div class="valid">&nbsp;</div></a>
          </div>
        </span>
      <% else %>
        <span class="undefined">
          <%= h step.value %>
          <div class="definition developer">
            <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

37 entries across 37 versions & 5 rubygems

Version Path
yard-gherkin-turnip-1.0.2 lib/templates/default/feature/html/steps.erb
yard-gherkin-turnip-1.0.1 lib/templates/default/feature/html/steps.erb
yard-gherkin-turnip-1.0.0 lib/templates/default/feature/html/steps.erb
yard-nrser-cucumber-0.1.3 lib/templates/default/feature/html/steps.erb
yard-nrser-cucumber-0.1.2 lib/templates/default/feature/html/steps.erb
yard-nrser-cucumber-0.1.1 lib/templates/default/feature/html/steps.erb
yard-nrser-cucumber-0.1.0 lib/templates/default/feature/html/steps.erb
yard-cucumber-4.0.0 lib/templates/default/feature/html/steps.erb
yard-cucumber-3.1.0 lib/templates/default/feature/html/steps.erb
yard-cucumber-3.0.0 lib/templates/default/feature/html/steps.erb
yard-cucumber2-2.3.4 lib/templates/default/feature/html/steps.erb
yard-cucumber2-2.3.3 lib/templates/default/feature/html/steps.erb
yard-cucumber-2.3.2 lib/templates/default/feature/html/steps.erb
yard-cucumber-2.3.1 lib/templates/default/feature/html/steps.erb
yard-cucumber-2.3.0 lib/templates/default/feature/html/steps.erb
yard-cucumber-2.2.3 lib/templates/default/feature/html/steps.erb
yard-cucumber-2.2.2 lib/templates/default/feature/html/steps.erb
yard-cucumber-2.2.1 lib/templates/default/feature/html/steps.erb
yard-cucumber-2.2.0 lib/templates/default/feature/html/steps.erb
yard-cucumber-2.1.7 lib/templates/default/feature/html/steps.erb