Fix all Layout/SpaceAfterComma issues and remove from rubocop_todo list
This commit is contained in:
@@ -356,7 +356,7 @@ feature 'Admin polls' do
|
||||
question_2.valid_answers.each_with_index do |answer, i|
|
||||
within("#question_#{question_2.id}_#{i}_result") do
|
||||
expect(page).to have_content(answer)
|
||||
expect(page).to have_content([0,15][i])
|
||||
expect(page).to have_content([0, 15][i])
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ feature 'Users' do
|
||||
expect(user).to be_level_three_verified
|
||||
expect(user).to be_residence_verified
|
||||
expect(user).to_not be_confirmed
|
||||
expect(user.date_of_birth).to have_content (Date.new(1980,12,31))
|
||||
expect(user.date_of_birth).to have_content (Date.new(1980, 12, 31))
|
||||
|
||||
sent_token = /.*confirmation_token=(.*)".*/.match(ActionMailer::Base.deliveries.last.body.to_s)[1]
|
||||
visit user_confirmation_path(confirmation_token: sent_token)
|
||||
@@ -69,7 +69,7 @@ feature 'Users' do
|
||||
expect(user).to be_level_three_verified
|
||||
expect(user).to be_residence_verified
|
||||
expect(user).to be_confirmed
|
||||
expect(user.date_of_birth).to have_content (Date.new(1980,12,31))
|
||||
expect(user.date_of_birth).to have_content (Date.new(1980, 12, 31))
|
||||
end
|
||||
|
||||
scenario 'Delete a level 2 user account from document verification page', :js do
|
||||
|
||||
@@ -289,9 +289,9 @@ feature 'Valuation budget investments' do
|
||||
end
|
||||
|
||||
scenario 'Feasibility selection makes proper fields visible', :js do
|
||||
feasible_fields = ['Price (€)','Cost during the first year (€)','Price explanation','Time scope']
|
||||
feasible_fields = ['Price (€)', 'Cost during the first year (€)', 'Price explanation', 'Time scope']
|
||||
unfeasible_fields = ['Feasibility explanation']
|
||||
any_feasibility_fields = ['Valuation finished','Internal comments']
|
||||
any_feasibility_fields = ['Valuation finished', 'Internal comments']
|
||||
undecided_fields = feasible_fields + unfeasible_fields + any_feasibility_fields
|
||||
|
||||
visit edit_valuation_budget_budget_investment_path(@budget, @investment)
|
||||
|
||||
@@ -311,9 +311,9 @@ feature 'Valuation spending proposals' do
|
||||
end
|
||||
|
||||
scenario 'Feasibility selection makes proper fields visible', :js do
|
||||
feasible_true_fields = ['Price (€)','Cost during the first year (€)','Price explanation','Time scope']
|
||||
feasible_true_fields = ['Price (€)', 'Cost during the first year (€)', 'Price explanation', 'Time scope']
|
||||
feasible_false_fields = ['Feasibility explanation']
|
||||
feasible_any_fields = ['Valuation finished','Internal comments']
|
||||
feasible_any_fields = ['Valuation finished', 'Internal comments']
|
||||
feasible_nil_fields = feasible_true_fields + feasible_false_fields + feasible_any_fields
|
||||
|
||||
visit edit_valuation_spending_proposal_path(@spending_proposal)
|
||||
|
||||
Reference in New Issue
Block a user