polish budgets investment show back link
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="small-12 medium-9 column">
|
<div class="small-12 medium-9 column">
|
||||||
<%= back_link_to budget_investments_path(heading_id: investment.heading.id) %>
|
<%= back_link_to budget_investments_path(investment.budget, heading_id: investment.heading) %>
|
||||||
|
|
||||||
<h1><%= investment.title %></h1>
|
<h1><%= investment.title %></h1>
|
||||||
|
|
||||||
|
|||||||
@@ -282,7 +282,7 @@ feature 'Budget Investments' do
|
|||||||
investment = create(:budget_investment, heading: heading)
|
investment = create(:budget_investment, heading: heading)
|
||||||
visit budget_investment_path(budget, investment)
|
visit budget_investment_path(budget, investment)
|
||||||
|
|
||||||
expect(page).to have_link "Go back", href: budget_investments_path(budget, heading_id: heading.id)
|
expect(page).to have_link "Go back", href: budget_investments_path(budget, heading_id: investment.heading)
|
||||||
end
|
end
|
||||||
|
|
||||||
context "Show (feasible budget investment)" do
|
context "Show (feasible budget investment)" do
|
||||||
|
|||||||
Reference in New Issue
Block a user