diff options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/arel/unit/relations/projection_spec.rb | 21 | ||||
-rw-r--r-- | spec/arel/unit/relations/relation_spec.rb | 14 |
2 files changed, 12 insertions, 23 deletions
diff --git a/spec/arel/unit/relations/projection_spec.rb b/spec/arel/unit/relations/projection_spec.rb index eedcf77952..0008858e08 100644 --- a/spec/arel/unit/relations/projection_spec.rb +++ b/spec/arel/unit/relations/projection_spec.rb @@ -70,21 +70,18 @@ module Arel end end - describe Projection::Externalizable do - describe '#aggregation?' do - describe 'when the projections are attributes' do - it 'returns false' do - Projection.new(@relation, @attribute).should_not be_aggregation - end + describe '#aggregation?' do + describe 'when the projections are attributes' do + it 'returns false' do + Projection.new(@relation, @attribute).should_not be_aggregation end - - describe 'when the projections include an aggregation' do - it "obtains" do - Projection.new(@relation, @attribute.sum).should be_aggregation - end + end + + describe 'when the projections include an aggregation' do + it "obtains" do + Projection.new(@relation, @attribute.sum).should be_aggregation end end - end end end
\ No newline at end of file diff --git a/spec/arel/unit/relations/relation_spec.rb b/spec/arel/unit/relations/relation_spec.rb index 3b8be55c7d..d9ae8e0742 100644 --- a/spec/arel/unit/relations/relation_spec.rb +++ b/spec/arel/unit/relations/relation_spec.rb @@ -23,16 +23,8 @@ module Arel end end end - - describe Relation::Externalizable do - describe '#aggregation?' do - it "returns false" do - @relation.should_not be_aggregation - end - end - end - - describe Relation::Operations do + + describe Relation::Operable do describe 'joins' do before do @predicate = @relation[:id].eq(@relation[:id]) @@ -154,7 +146,7 @@ module Arel end end - describe Relation::Operations::Writes do + describe Relation::Operable::Writable do describe '#delete' do it 'manufactures a deletion relation' do Session.start do |