Skip to content

Commit

Permalink
Join level B comments with "|"
Browse files Browse the repository at this point in the history
Don't use "\n"
  • Loading branch information
rgarner committed Feb 3, 2025
1 parent 207f73d commit e905c13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/services/export/activities_level_b.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def row_for(activity)
budgets_by_year[2026]&.value, # "Budget 2026-2027",
budgets_by_year[2027]&.value, # "Budget 2027-2028",
budgets_by_year[2028]&.value, # "Budget 2028-2029",
activity.comments.map(&:body).join("\n") # "Comments"
activity.comments.map(&:body).join("|") # "Comments"
]
end

Expand Down
2 changes: 1 addition & 1 deletion spec/features/beis_users_can_download_exports_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@
"Budget 2026-2027" => nil,
"Budget 2027-2028" => nil,
"Budget 2028-2029" => nil,
"Comments" => "#{programme_1.comments.first.body}\n#{programme_1.comments.last.body}"
"Comments" => "#{programme_1.comments.first.body}|#{programme_1.comments.last.body}"
})).and(have_attributes(length: 35))

# And that file should contain no level B activities for any other fund
Expand Down

0 comments on commit e905c13

Please sign in to comment.