Both these objects where using/setting a variable called valid_orders. As a results, some specs where becoming flacky (features/budgets/investments_spec.rb, balloting phase). By putting them together, there is no `valid_orders` variable any more (everything is @valid_orders) and the flackyness is gone.
10 lines
354 B
Plaintext
10 lines
354 B
Plaintext
<div class="submenu">
|
|
<% @valid_orders.each do |order| %>
|
|
<%= link_to current_path_with_query_params(order: order, page: 1), class: order == @current_order ? 'active' : '' do %>
|
|
<%= content_tag(order == @current_order ? :h2 : :span) do %>
|
|
<%= t("#{i18n_namespace}.orders.#{order}") %>
|
|
<% end %>
|
|
<% end %>
|
|
<% end %>
|
|
</div>
|