Add and apply Style/BlockDelimiters rubocop rule

We were already using it most of the time, but there were a few places
were we used brackets for multiline blocks.
This commit is contained in:
Javi Martín
2019-09-30 13:08:24 +02:00
parent d42b9ff4a5
commit 70a07c095f
38 changed files with 304 additions and 257 deletions

View File

@@ -37,9 +37,9 @@ describe "Valuation budget investments" do
scenario "Disabled with a feature flag" do
Setting["process.budgets"] = nil
expect {
expect do
visit valuation_budget_budget_investments_path(create(:budget))
}.to raise_exception(FeatureFlags::FeatureDisabled)
end.to raise_exception(FeatureFlags::FeatureDisabled)
end
scenario "Display link to valuation section" do
@@ -282,9 +282,9 @@ describe "Valuation budget investments" do
logout
login_as create(:valuator).user
expect {
expect do
visit valuation_budget_budget_investment_path(budget, investment)
}.to raise_error "Not Found"
end.to raise_error "Not Found"
end
scenario "preview is visible" do