aboutsummaryrefslogtreecommitdiffstats
path: root/spec/algebra
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-08-04 16:04:28 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-08-04 16:04:28 -0700
commitfa12b394ff6240358a32ecff63700f85084da5ac (patch)
treeeb8aa26038bcfc9968f8aa4add636f9679b55601 /spec/algebra
parenta7e0d6e85a9d4562a3e16e7fdc2dbd0719ae36ed (diff)
downloadrails-fa12b394ff6240358a32ecff63700f85084da5ac.tar.gz
rails-fa12b394ff6240358a32ecff63700f85084da5ac.tar.bz2
rails-fa12b394ff6240358a32ecff63700f85084da5ac.zip
removing Group#==, improving Group test
Diffstat (limited to 'spec/algebra')
-rw-r--r--spec/algebra/unit/relations/relation_spec.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/algebra/unit/relations/relation_spec.rb b/spec/algebra/unit/relations/relation_spec.rb
index 1a15471f9a..4a7d9be0dc 100644
--- a/spec/algebra/unit/relations/relation_spec.rb
+++ b/spec/algebra/unit/relations/relation_spec.rb
@@ -160,7 +160,10 @@ module Arel
describe '#group' do
it 'manufactures a group relation' do
- @relation.group(@attribute1, @attribute2).should == Group.new(@relation, [@attribute1, @attribute2])
+ group = @relation.group(@attribute1, @attribute2)
+ group.relation.should == @relation
+ group.groupings.should == [@attribute1, @attribute2]
+ group.should be_kind_of Group
end
describe 'when given blank groupings' do