From 1b4e7715d3872cee9fbcd3ce0b6713294d04b5bc Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Wed, 4 Aug 2010 16:05:49 -0700 Subject: adding a spec for Group#to_sql --- spec/algebra/unit/relations/relation_spec.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'spec') diff --git a/spec/algebra/unit/relations/relation_spec.rb b/spec/algebra/unit/relations/relation_spec.rb index 4a7d9be0dc..1219f80bc3 100644 --- a/spec/algebra/unit/relations/relation_spec.rb +++ b/spec/algebra/unit/relations/relation_spec.rb @@ -164,6 +164,8 @@ module Arel group.relation.should == @relation group.groupings.should == [@attribute1, @attribute2] group.should be_kind_of Group + sql = group.to_sql + sql.should =~ /GROUP BY/ end describe 'when given blank groupings' do -- cgit v1.2.3