spec/mongoid/report/column_spec.rb in mongoid-report-0.1.9 vs spec/mongoid/report/column_spec.rb in mongoid-report-0.2.0
- old
+ new
@@ -26,10 +26,10 @@
report = report_klass.new
scope = report.aggregate
scope = scope.all
- rows = scope['example-models'].rows
+ rows = scope['example']['models'].rows
expect(rows.size).to eq(2)
expect(rows[0]['field1']).to eq(1)
expect(rows[0]['dynamic-field1']).to eq(10)
expect(rows[1]['field1']).to eq(2)
expect(rows[1]['dynamic-field1']).to eq(20)