aboutsummaryrefslogtreecommitdiffstats
path: root/spec/lib/public_body_csv_spec.rb
Commit message (Collapse)AuthorAgeLines
* Extract public body CSV export to its own classGareth Rees2014-06-06-0/+114
- SRP: Do one thing. PublicBodyCSV converts a collection of bodies in to a CSV formatted String - Adds some parenthesis around parameters in PublicBodyController#list_all_csv - Let the controller handle what records to pull out for the CSV export Arguably this doesn't really need to be anything to do with PublicBody, but it allows us to set nice defaults.