Introduction
Introduction Statistics Contact Development Disclaimer Help
fixed failing spec - reportable - Fork of reportable required by WarVox, from h…
Log
Files
Refs
README
---
commit 1d937aa19e87ee6eaa80c8683bc8cf98df0d008b
parent b09837e7524ec6d84868fb2ab67917794548157c
Author: Marco Otte-Witte <[email protected]>
Date: Tue, 28 Apr 2009 18:25:40 +0200
fixed failing spec
Diffstat:
M spec/classes/report_spec.rb | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/spec/classes/report_spec.rb b/spec/classes/report_spec.rb
@@ -407,7 +407,12 @@ describe Simplabs::ReportsAsSparkline::Report do
custom_conditions = { :first_name => 'first name', :last_name => 'last n…
conditions = @report.send(:setup_conditions, @begin_at, @end_at, custom_…
- conditions.should == ['"users"."first_name" = \'first name\' AND "users"…
+ # cannot directly check for string equqlity here since hashes are not or…
+ conditions[0].should =~ (/"users"."first_name" = \'first name\'/)
+ conditions[0].should =~ (/"users"."last_name" = \'last name\'/)
+ conditions[0].should =~ (/"users"."created_at" BETWEEN \? AND \?/)
+ conditions[1].should == @begin_at
+ conditions[2].should == @end_at
end
it 'should correctly translate { :column => nil }' 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.