Skip to content

Instantly share code, notes, and snippets.

@smaboshe
Created August 18, 2011 07:18
Show Gist options
  • Save smaboshe/1153581 to your computer and use it in GitHub Desktop.
Save smaboshe/1153581 to your computer and use it in GitHub Desktop.
Capybara should match a link inside the each block
<h1><%= yield :title %></h1>
<div class="plans">
<% @plans.each do |plan| %>
<%= link_to plan.name, root_url, :id => plan.name.downcase %>
<% end %>
</div><!-- /.plans -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment