adds specs

This commit is contained in:
decabeza
2017-05-29 12:56:34 +02:00
parent 9607346e57
commit 7e0be26ad6

View File

@@ -278,6 +278,16 @@ feature 'Budget Investments' do
end
end
scenario "Show back link contains heading id" do
investment = create(:budget_investment, heading: heading)
visit budget_investment_path(budget, investment)
expect(page).to have_link "Go back", href: budget_investments_path(budget, heading_id: heading.id)
click_link 'Go back'
expected_path = budget_investments_path(budget, heading_id: heading.id)
end
context "Show (feasible budget investment)" do
let(:investment) { create(:budget_investment,
:feasible,