Add setting to allow remove investments supports

This commit is contained in:
decabeza
2021-11-06 00:38:02 +01:00
committed by Javi Martín
parent 1a73b20d9b
commit 9979b53994
12 changed files with 74 additions and 13 deletions

View File

@@ -334,6 +334,7 @@ describe "Budget Investments" do
end
scenario "Remove support on behalf of someone else in index view" do
Setting["feature.remove_investments_supports"] = true
create(:budget_investment, heading: heading)
login_managed_user(user)
@@ -354,6 +355,7 @@ describe "Budget Investments" do
end
scenario "Remove support on behalf of someone else in show view" do
Setting["feature.remove_investments_supports"] = true
create(:budget_investment, heading: heading, title: "Don't support me!")
login_managed_user(user)