Remove unused block arguments

There are more cases where we have unused block arguments, but I'm only
changing the obvious ones.
This commit is contained in:
Javi Martín
2019-09-28 22:49:37 +02:00
parent 93a2ebd46f
commit 447c970eb3
3 changed files with 3 additions and 3 deletions

View File

@@ -81,7 +81,7 @@ FactoryBot.define do
header { true }
sequence(:button_text) { |n| "Button text #{n}" }
sequence(:button_url) { |n| "Button url #{n}" }
sequence(:alignment) { |n| "background" }
alignment { "background" }
end
after :create do |widget_card|

View File

@@ -690,7 +690,7 @@ describe "Budget Investments" do
end
scenario "Random order maintained when going back from show" do
per_page.times { |i| create(:budget_investment, heading: heading) }
per_page.times { create(:budget_investment, heading: heading) }
visit budget_investments_path(budget, heading_id: heading.id)

View File

@@ -253,5 +253,5 @@ end
def generate_response(resource)
field_text = Faker::Lorem.characters(10)
resource.translated_attribute_names.map { |field| field_text }
resource.translated_attribute_names.map { field_text }
end