resolved rubocop lexically scoped errors

This commit is contained in:
Nwabor
2024-05-07 23:54:08 +01:00
parent 13e4d4beb6
commit 0a67cc945f
46 changed files with 133 additions and 100 deletions

View File

@@ -53,8 +53,10 @@ RSpec.describe Api::V0::ReportsController, type: :controller do
private
def report_output(order, user_type)
results = order.line_items.map do |line_item|
__send__("#{user_type}_report_row", line_item)
results = []
order.line_items.map do |line_item|
results << __send__("#{user_type}_report_row", line_item)
end
end