Simplify valuator filter tests in budgets
Doing so makes it possible to have shorter lines after applying the Layout/RedundantLineBreak rule.
This commit is contained in:
@@ -262,15 +262,8 @@ describe "Admin budget investments", :admin do
|
|||||||
end
|
end
|
||||||
|
|
||||||
scenario "Filtering by without assigned valuator" do
|
scenario "Filtering by without assigned valuator" do
|
||||||
user = create(:user)
|
create(:budget_investment, title: "Investment without valuator", budget: budget)
|
||||||
valuator = create(:valuator, user: user)
|
create(:budget_investment, :with_valuator, title: "Investment with valuator", budget: budget)
|
||||||
create(:budget_investment,
|
|
||||||
title: "Investment without valuator",
|
|
||||||
budget: budget)
|
|
||||||
create(:budget_investment,
|
|
||||||
title: "Investment with valuator",
|
|
||||||
budget: budget,
|
|
||||||
valuators: [valuator])
|
|
||||||
|
|
||||||
visit admin_budget_budget_investments_path(budget_id: budget)
|
visit admin_budget_budget_investments_path(budget_id: budget)
|
||||||
expect(page).to have_link("Investment without valuator")
|
expect(page).to have_link("Investment without valuator")
|
||||||
@@ -293,14 +286,12 @@ describe "Admin budget investments", :admin do
|
|||||||
end
|
end
|
||||||
|
|
||||||
scenario "Filtering by under valuation" do
|
scenario "Filtering by under valuation" do
|
||||||
user = create(:user)
|
|
||||||
valuator = create(:valuator, user: user)
|
|
||||||
create(:budget_investment,
|
create(:budget_investment,
|
||||||
:with_administrator,
|
:with_administrator,
|
||||||
|
:with_valuator,
|
||||||
:open,
|
:open,
|
||||||
title: "Investment without valuation",
|
title: "Investment without valuation",
|
||||||
budget: budget,
|
budget: budget)
|
||||||
valuators: [valuator])
|
|
||||||
create(:budget_investment,
|
create(:budget_investment,
|
||||||
:with_administrator,
|
:with_administrator,
|
||||||
title: "Investment with valuation",
|
title: "Investment with valuation",
|
||||||
|
|||||||
Reference in New Issue
Block a user