aboutsummaryrefslogtreecommitdiffstats
path: root/spec/arel/unit/relations/projection_spec.rb
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-05-18 16:47:55 -0700
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2008-05-18 16:47:55 -0700
commit7feff4e7b52fbef356426d22257af161704315ad (patch)
treedb907c2bc27dc406d08513d40f8e75cd810a91f9 /spec/arel/unit/relations/projection_spec.rb
parent32ad530b825f4cdac51e579306548ca695471039 (diff)
downloadrails-7feff4e7b52fbef356426d22257af161704315ad.tar.gz
rails-7feff4e7b52fbef356426d22257af161704315ad.tar.bz2
rails-7feff4e7b52fbef356426d22257af161704315ad.zip
performance enhancements
Diffstat (limited to 'spec/arel/unit/relations/projection_spec.rb')
-rw-r--r--spec/arel/unit/relations/projection_spec.rb15
1 files changed, 1 insertions, 14 deletions
diff --git a/spec/arel/unit/relations/projection_spec.rb b/spec/arel/unit/relations/projection_spec.rb
index cede58354b..3c6a092db5 100644
--- a/spec/arel/unit/relations/projection_spec.rb
+++ b/spec/arel/unit/relations/projection_spec.rb
@@ -13,20 +13,7 @@ module Arel
end
it "manufactures attributes associated with the projection relation" do
- # @projection.attributes.should == [@attribute].collect { |a| a.bind(@projection) }
- end
- end
-
- describe '==' do
- before do
- @another_relation = Table.new(:photos)
- @another_attribute = @relation[:name]
- end
-
- it "obtains if the relations and attributes are identical" do
- Projection.new(@relation, @attribute).should == Projection.new(@relation, @attribute)
- Projection.new(@relation, @attribute).should_not == Projection.new(@another_relation, @attribute)
- Projection.new(@relation, @attribute).should_not == Projection.new(@relation, @another_attribute)
+ @projection.attributes.should == [@attribute].collect { |a| a.bind(@projection) }
end
end