Skip to content
schacon edited this page Sep 12, 2010 · 2 revisions
Munger
- should run a quick report with simple data (NOT IMPLEMENTED)

Munger::Data
- should accept an array of hashes
- should be able to set data after init
- should be able to set data in init block
- should be able to extract columns from data
- should be able to add a new column with a default value
- should be able to add a new column with a block
- should be able to add multiple new columns with defaults
- should be able to add multiple new columns with a block
- should work with add_columns, too
- should be able to transform a column
- should be able to transform multiple rows
- should be able to filter the data down (NOT IMPLEMENTED)
- should be able to pivot the data (1 column)
- should be able to pivot the data with average aggregation
- should be able to pivot the data with count aggregation
- should be able to pivot the data in three dimensions (1 col, 2 row)
- should be able to pivot the data in three dimensions (2 col, 1 row) (NOT IMPLEMENTED)
- should be able to pivot the data in four dimensions (2 col, 2 row) (NOT IMPLEMENTED)
- should be able to group the data like sql (NOT IMPLEMENTED)

Munger::Item
- should accept a hash with symbols
- should accept a hash with strings
- should accept mixed types
- should be able to access hash values indifferently

Munger::Render::Html
- should accept a Munger::Report object
- should render a basic html table
- should render columns in the right order
- should render groups
- should render cell styles
- should render row styles
- should render default css if you ask (NOT IMPLEMENTED)

Munger::Report
- should accept a Munger::Data object
- should accept a array of hashes
- should be able to sort fields by array
- should be able to custom sort fields
- should be able to order columns
- should be able to alias column titles
- should default to all columns
- should be able to subgroup data
- should be able to subgroup in multiple dimensions (NOT IMPLEMENTED)
- should be able to aggregate columns into subgroup rows
- should be able to aggregate multiple columns into subgroup rows
- should be able to aggregate with :average, :product
- should be able to aggregate with :custom
- should be able to style cells
- should be able to style cells in certain columns
- should be able to style rows
- should be able to aggregate rows into new column (NOT IMPLEMENTED)

Finished in 0.101988 seconds

48 examples, 0 failures, 8 not implemented
Clone this wiki locally