diff options
-rw-r--r-- | spec/algebra/unit/relations/relation_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
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 |