Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix 3 more specs from ResultSet subclass change. - reportable - Fork of reporta…
Log
Files
Refs
README
---
commit f7ade972fb3806796efeb8bdbf581019f15ce59c
parent 9bd4451d4420cd09a74d7e857f3b6856e45cd8b3
Author: Dieter Komendera <[email protected]>
Date: Wed, 1 Feb 2012 11:35:58 +0100
Fix 3 more specs from ResultSet subclass change.
Diffstat:
M spec/classes/report_cache_spec.rb | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/spec/classes/report_cache_spec.rb b/spec/classes/report_cache_spec…
@@ -346,16 +346,17 @@ describe Saulabs::Reportable::ReportCache do
it 'should return an array of arrays of Dates and Floats' do
result = Saulabs::Reportable::ReportCache.send(:prepare_result, @new_dat…
- result.should be_kind_of(Array)
- result[0].should be_kind_of(Array)
- result[0][0].should be_kind_of(Date)
- result[0][1].should be_kind_of(Float)
+ result.should be_kind_of(Saulabs::Reportable::ResultSet)
+ result.to_a.should be_kind_of(Array)
+ result.to_a[0].should be_kind_of(Array)
+ result.to_a[0][0].should be_kind_of(Date)
+ result.to_a[0][1].should be_kind_of(Float)
end
describe 'with :live_data = false' do
before do
- @result = Saulabs::Reportable::ReportCache.send(:prepare_result, @new_…
+ @result = Saulabs::Reportable::ReportCache.send(:prepare_result, @new_…
end
it 'should return an array of length :limit' do
You are viewing proxied material from jay.scot. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.