aboutsummaryrefslogtreecommitdiffstats
path: root/spec/arel/engines/sql/unit/relations/project_spec.rb
diff options
context:
space:
mode:
authorBryan Helmkamp <bryan@brynary.com>2009-05-17 15:41:49 -0400
committerBryan Helmkamp <bryan@brynary.com>2009-05-17 15:41:49 -0400
commit4c71e3b2ea4b8da574954cbd8a26d12f2cc640d0 (patch)
tree94cd4c2d1a9d1f2c25cf5f04be9aaa8b2fb888fc /spec/arel/engines/sql/unit/relations/project_spec.rb
parenta7aacd29460aa137c3b06ee214ff8ffdff8ee365 (diff)
downloadrails-4c71e3b2ea4b8da574954cbd8a26d12f2cc640d0.tar.gz
rails-4c71e3b2ea4b8da574954cbd8a26d12f2cc640d0.tar.bz2
rails-4c71e3b2ea4b8da574954cbd8a26d12f2cc640d0.zip
removed duplicates from sql tests
Conflicts: spec/arel/engines/sql/unit/predicates/binary_spec.rb spec/arel/engines/sql/unit/predicates/equality_spec.rb spec/arel/engines/sql/unit/primitives/attribute_spec.rb spec/arel/engines/sql/unit/primitives/expression_spec.rb spec/arel/engines/sql/unit/relations/alias_spec.rb spec/arel/engines/sql/unit/relations/join_spec.rb spec/arel/engines/sql/unit/relations/project_spec.rb spec/arel/engines/sql/unit/relations/relation_spec.rb spec/arel/engines/sql/unit/relations/table_spec.rb spec/arel/engines/sql/unit/relations/where_spec.rb spec/arel/engines/sql/unit/session/session_spec.rb
Diffstat (limited to 'spec/arel/engines/sql/unit/relations/project_spec.rb')
-rw-r--r--spec/arel/engines/sql/unit/relations/project_spec.rb24
1 files changed, 0 insertions, 24 deletions
diff --git a/spec/arel/engines/sql/unit/relations/project_spec.rb b/spec/arel/engines/sql/unit/relations/project_spec.rb
index 9d6b9fab06..5e29124cfa 100644
--- a/spec/arel/engines/sql/unit/relations/project_spec.rb
+++ b/spec/arel/engines/sql/unit/relations/project_spec.rb
@@ -7,16 +7,6 @@ module Arel
@attribute = @relation[:id]
end
- describe '#attributes' do
- before do
- @projection = Project.new(@relation, @attribute)
- end
-
- it "manufactures attributes associated with the projection relation" do
- @projection.attributes.should == [@attribute].collect { |a| a.bind(@projection) }
- end
- end
-
describe '#to_sql' do
describe 'when given an attribute' do
it "manufactures sql with a limited select clause" do
@@ -116,19 +106,5 @@ module Arel
end
end
end
-
- describe '#externalizable?' do
- describe 'when the projections are attributes' do
- it 'returns false' do
- 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_externalizable
- end
- end
- end
end
end