Sha256: f7ef6d642cf5484d8a03c0772e529226c70fbb470b21d2ff3b4bedf780470e46

Contents?: true

Size: 1.05 KB

Versions: 4

Compression:

Stored size: 1.05 KB

Contents

<script type="text/javascript" charset="utf-8">
$(function() {
	$('#<%= @id %> .toggle').click(function() {
		$("#<%= @id %>Steps").toggle('blind');

		var stateIndicator = $('#<%= @id %> a.toggle')[0]

		stateIndicator.innerHTML = (stateIndicator.innerHTML === '+' ? '-' : '+'); 
		return false;
	});
});
</script>

<div id="<%= @id %>" class="scenario">
	<div class="title">
		<a class="toggle">-</a>
		<span class="pre"><%= @scenario.keyword %>:</span>
		<span class="name"><%= h @scenario.value %></span>
	</div>
	<div class="meta">
		<div class="file"><%= @scenario.location %></div>
		<% unless @scenario.tags.empty? %>
		<div class="tags">
			<% @scenario.tags.each do |tag| %>
			<a href="<%= url_for tag %>"><%= tag.value %></a>
			<% end %>
		</div>
		<% end%>
	</div>
	<% unless @scenario.description.empty? %>
	<div class="description">
		<%= h @scenario.description %>
	</div>
	<% end %>

	<div id="<%= @id %>Steps" class="steps">
		<%= @scenario.steps ? erb(:steps) : erb(:no_steps_defined) %>
		
	</div>

	<%= erb(:outline) if @scenario.outline? %>

</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cucumber-in-the-yard-1.5.4 lib/templates/default/feature/html/scenario.erb
cucumber-in-the-yard-1.5.3 lib/templates/default/feature/html/scenario.erb
cucumber-in-the-yard-1.5.2 lib/templates/default/feature/html/scenario.erb
cucumber-in-the-yard-1.5.1 lib/templates/default/feature/html/scenario.erb