Replace back link on budget executions
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
<div class="expanded no-margin-top padding header">
|
||||
<div class="row">
|
||||
<div class="small-12 column">
|
||||
<%= back_link_to budgets_path %>
|
||||
<%= back_link_to budget_path(@budget) %>
|
||||
<h2 class="margin-top">
|
||||
<%= t("budgets.executions.heading") %><br>
|
||||
<span><%= @budget.name %></span>
|
||||
|
||||
@@ -76,6 +76,12 @@ describe "Executions" do
|
||||
expect(page).to have_content("No winner investments in this state")
|
||||
end
|
||||
|
||||
scenario "Back link redirects to budget page" do
|
||||
visit budget_executions_path(budget)
|
||||
|
||||
expect(page).to have_link("Go back", href: budget_path(budget))
|
||||
end
|
||||
|
||||
context "Images" do
|
||||
scenario "renders milestone image if available" do
|
||||
milestone1 = create(:milestone, :with_image, milestoneable: investment1)
|
||||
|
||||
Reference in New Issue
Block a user