Skip to content

Commit

Permalink
adding a spec for Group#to_sql
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Aug 4, 2010
1 parent fa12b39 commit 1b4e771
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/algebra/unit/relations/relation_spec.rb
Expand Up @@ -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
Expand Down

0 comments on commit 1b4e771

Please sign in to comment.