aboutsummaryrefslogtreecommitdiffstats
path: root/spec/active_relation/unit/relations/selection_spec.rb
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-04-12 16:43:48 -0700
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2008-04-12 16:43:48 -0700
commit1b8f72746b38ce1e08b5fab48f3251eb09f2cba0 (patch)
tree3782ef3e88474bb6d79ba3e25b08b235fca78040 /spec/active_relation/unit/relations/selection_spec.rb
parent6de1f350ce117129e46353f12f90a138ca3d3ead (diff)
downloadrails-1b8f72746b38ce1e08b5fab48f3251eb09f2cba0.tar.gz
rails-1b8f72746b38ce1e08b5fab48f3251eb09f2cba0.tar.bz2
rails-1b8f72746b38ce1e08b5fab48f3251eb09f2cba0.zip
- removed #qualify and #descend helper
- qualify seems no longer neccessary since everything is fully qualified - finished pending specs
Diffstat (limited to 'spec/active_relation/unit/relations/selection_spec.rb')
-rw-r--r--spec/active_relation/unit/relations/selection_spec.rb20
1 files changed, 1 insertions, 19 deletions
diff --git a/spec/active_relation/unit/relations/selection_spec.rb b/spec/active_relation/unit/relations/selection_spec.rb
index 20833de58d..d87e075f98 100644
--- a/spec/active_relation/unit/relations/selection_spec.rb
+++ b/spec/active_relation/unit/relations/selection_spec.rb
@@ -17,25 +17,7 @@ module ActiveRelation
should == Selection.new(Selection.new(@relation, @another_predicate), @predicate)
end
end
-
- describe '#qualify' do
- it "descends" do
- Selection.new(@relation, @predicate).qualify. \
- should == Selection.new(@relation, @predicate).descend(&:qualify)
- end
- end
-
- describe '#descend' do
- before do
- @selection = Selection.new(@relation, @predicate)
- end
-
- it "distributes a block over the relation and predicates" do
- @selection.descend(&:qualify). \
- should == Selection.new(@selection.relation.descend(&:qualify), @selection.predicate.qualify)
- end
- end
-
+
describe '#to_sql' do
describe 'when given a predicate' do
it "manufactures sql with where clause conditions" do