spec/mongoid/report/summary_spec.rb in mongoid-report-0.0.6 vs spec/mongoid/report/summary_spec.rb in mongoid-report-0.0.7

- old
+ new

@@ -12,9 +12,10 @@ klass.create!(day: today , field1: 1) klass.create!(day: yesterday , field1: 1) example = Report3.new rows = example.aggregate_for(klass) + rows = rows.all expect(rows.count).to eq(2) expect(rows.summary[:field1]).to eq(3) end end