From 33c2b28063a7164beee57b449355d07e4b2e26ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Wed, 6 Nov 2019 15:21:10 +0100 Subject: [PATCH] Remove duplicate test This test is exactly the same as the "visible for admins" scenario. --- .../valuation/budget_investments_spec.rb | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/spec/features/valuation/budget_investments_spec.rb b/spec/features/valuation/budget_investments_spec.rb index 11656f9ef..ce4d014b1 100644 --- a/spec/features/valuation/budget_investments_spec.rb +++ b/spec/features/valuation/budget_investments_spec.rb @@ -283,23 +283,6 @@ describe "Valuation budget investments" do visit valuation_budget_budget_investment_path(budget, investment) end.to raise_error "Not Found" end - - scenario "preview is visible" do - logout - login_as create(:administrator).user - - visit valuation_budget_budget_investment_path(budget, investment) - - expect(page).to have_content("Investment preview") - expect(page).to have_content(investment.title) - expect(page).to have_content(investment.description) - expect(page).to have_content(investment.author.name) - expect(page).to have_content(investment.heading.name) - expect(page).to have_content("1234") - expect(page).to have_content("Unfeasible") - expect(page).to have_content("It is impossible") - expect(page).to have_content("Ana (ana@admins.org)") - end end describe "Valuate" do