aboutsummaryrefslogtreecommitdiffstats
path: root/spec/arel/unit/relations/project_spec.rb
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-05-20 10:11:07 -0700
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2008-05-20 10:11:07 -0700
commit41f80e494af3ce7c8f3d6aa34f8303524a48373b (patch)
tree30b458021856fe436af8b17a457353356b286f1c /spec/arel/unit/relations/project_spec.rb
parent2d021c641ab8c9215df863531cfb0d8ff8b9554a (diff)
downloadrails-41f80e494af3ce7c8f3d6aa34f8303524a48373b.tar.gz
rails-41f80e494af3ce7c8f3d6aa34f8303524a48373b.tar.bz2
rails-41f80e494af3ce7c8f3d6aa34f8303524a48373b.zip
limits and offsets need to be externalized too. first draft
Diffstat (limited to 'spec/arel/unit/relations/project_spec.rb')
-rw-r--r--spec/arel/unit/relations/project_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/arel/unit/relations/project_spec.rb b/spec/arel/unit/relations/project_spec.rb
index 2a4b690dd8..93cbe5668a 100644
--- a/spec/arel/unit/relations/project_spec.rb
+++ b/spec/arel/unit/relations/project_spec.rb
@@ -57,16 +57,16 @@ module Arel
end
end
- describe '#aggregation?' do
+ describe '#externalizable?' do
describe 'when the projections are attributes' do
it 'returns false' do
- Project.new(@relation, @attribute).should_not be_aggregation
+ Project.new(@relation, @attribute).should_not be_externalizable
end
end
describe 'when the projections include an aggregation' do
it "obtains" do
- Project.new(@relation, @attribute.sum).should be_aggregation
+ Project.new(@relation, @attribute.sum).should be_externalizable
end
end
end