| speeded up specs (limiting to 10 reporting periods) - reportable - Fork of repo… | |
| Log | |
| Files | |
| Refs | |
| README | |
| --- | |
| commit f7accf08304988c6a9ed3ad7155e887a15054257 | |
| parent c1e1f6626fa5fb21ddae68c25d89855d1f74f2ef | |
| Author: marcoow <[email protected]> | |
| Date: Wed, 10 Dec 2008 23:07:28 +0800 | |
| speeded up specs (limiting to 10 reporting periods) | |
| Signed-off-by: Marco Otte-Witte <[email protected]> | |
| Diffstat: | |
| M spec/other/cumulated_report_spec.rb | 8 ++++---- | |
| M spec/other/report_spec.rb | 8 ++++---- | |
| 2 files changed, 8 insertions(+), 8 deletions(-) | |
| --- | |
| diff --git a/spec/other/cumulated_report_spec.rb b/spec/other/cumulated_report_… | |
| @@ -25,7 +25,7 @@ describe Kvlr::ReportsAsSparkline::CumulatedReport do | |
| end | |
| it 'should return correct data for :aggregation => :count' do | |
| - @report = Kvlr::ReportsAsSparkline::CumulatedReport.new(User, :regis… | |
| + @report = Kvlr::ReportsAsSparkline::CumulatedReport.new(User, :regis… | |
| result = @report.run | |
| result[0][1].should == 3 | |
| @@ -35,7 +35,7 @@ describe Kvlr::ReportsAsSparkline::CumulatedReport do | |
| end | |
| it 'should return correct data for :aggregation => :sum' do | |
| - @report = Kvlr::ReportsAsSparkline::CumulatedReport.new(User, :regis… | |
| + @report = Kvlr::ReportsAsSparkline::CumulatedReport.new(User, :regis… | |
| result = @report.run().to_a | |
| result[0][1].should == 6 | |
| @@ -45,7 +45,7 @@ describe Kvlr::ReportsAsSparkline::CumulatedReport do | |
| end | |
| it 'should return correct data with custom conditions for :aggregation… | |
| - @report = Kvlr::ReportsAsSparkline::CumulatedReport.new(User, :regis… | |
| + @report = Kvlr::ReportsAsSparkline::CumulatedReport.new(User, :regis… | |
| result = @report.run(:conditions => ['login IN (?)', ['test 1', 'tes… | |
| result[0][1].should == 2 | |
| @@ -55,7 +55,7 @@ describe Kvlr::ReportsAsSparkline::CumulatedReport do | |
| end | |
| it 'should return correct data with custom conditions for :aggregation… | |
| - @report = Kvlr::ReportsAsSparkline::CumulatedReport.new(User, :regis… | |
| + @report = Kvlr::ReportsAsSparkline::CumulatedReport.new(User, :regis… | |
| result = @report.run(:conditions => ['login IN (?)', ['test 1', 'tes… | |
| result[0][1].should == 3 | |
| diff --git a/spec/other/report_spec.rb b/spec/other/report_spec.rb | |
| @@ -37,7 +37,7 @@ describe Kvlr::ReportsAsSparkline::Report do | |
| end | |
| it 'should return correct data for :aggregation => :count' do | |
| - @report = Kvlr::ReportsAsSparkline::Report.new(User, :registrations,… | |
| + @report = Kvlr::ReportsAsSparkline::Report.new(User, :registrations,… | |
| result = @report.run.to_a | |
| result[0][1].should == 0 | |
| @@ -47,7 +47,7 @@ describe Kvlr::ReportsAsSparkline::Report do | |
| end | |
| it 'should return correct data for :aggregation => :sum' do | |
| - @report = Kvlr::ReportsAsSparkline::Report.new(User, :registrations,… | |
| + @report = Kvlr::ReportsAsSparkline::Report.new(User, :registrations,… | |
| result = @report.run().to_a | |
| result[0][1].should == 0 | |
| @@ -57,7 +57,7 @@ describe Kvlr::ReportsAsSparkline::Report do | |
| end | |
| it 'should return correct data with custom conditions for :aggregation… | |
| - @report = Kvlr::ReportsAsSparkline::Report.new(User, :registrations,… | |
| + @report = Kvlr::ReportsAsSparkline::Report.new(User, :registrations,… | |
| result = @report.run(:conditions => ['login IN (?)', ['test 1', 'tes… | |
| result[0][1].should == 0 | |
| @@ -67,7 +67,7 @@ describe Kvlr::ReportsAsSparkline::Report do | |
| end | |
| it 'should return correct data with custom conditions for :aggregation… | |
| - @report = Kvlr::ReportsAsSparkline::Report.new(User, :registrations,… | |
| + @report = Kvlr::ReportsAsSparkline::Report.new(User, :registrations,… | |
| result = @report.run(:conditions => ['login IN (?)', ['test 1', 'tes… | |
| result[0][1].should == 0 |