spec/unit/burndown_chart_spec.rb in trollolo-0.2.0 vs spec/unit/burndown_chart_spec.rb in trollolo-0.3.0
- old
+ new
@@ -232,12 +232,27 @@
@chart.read_data given_file('burndown-data.yaml')
expect(@chart.data['days']).to eq @raw_data
end
+ it 'reads todo columns' do
+ @chart.read_data given_file('burndown-data.yaml', from: 'burndown-data-with-todo-columns.yaml')
+ expect(@settings.todo_columns).to eq ['Swimlane Backlog', 'Sprint Backlog']
+ end
+
+ it 'reads doing columns' do
+ @chart.read_data given_file('burndown-data.yaml', from: 'burndown-data-with-doing-columns.yaml')
+ expect(@settings.doing_columns).to eq ['Doing', 'QA']
+ end
+
it 'reads not done columns' do
@chart.read_data given_file('burndown-data.yaml', from: 'burndown-data-with-config.yaml')
expect(@settings.not_done_columns).to eq ['Sprint Backlog', 'Doing', 'QA']
+ end
+
+ it 'reads swimlanes' do
+ @chart.read_data given_file('burndown-data.yaml', from: 'burndown-data-with-swimlanes.yaml')
+ expect(@settings.swimlanes).to eq ['Swimlane One', 'swimlanetwo']
end
end
describe '#write_data' do
it 'writes object to disk' do