Skip to content

Commit

Permalink
Remove duplicate test
Browse files Browse the repository at this point in the history
This test is exactly the same as the "visible for admins" scenario.
  • Loading branch information
javierm committed Nov 6, 2019
1 parent 6bbfb55 commit 33c2b28
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions spec/features/valuation/budget_investments_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -283,23 +283,6 @@
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 ([email protected])")
end
end

describe "Valuate" do
Expand Down

0 comments on commit 33c2b28

Please sign in to comment.