aboutsummaryrefslogtreecommitdiffstats
path: root/spec/active_relation/unit/relations/order_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/order_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/order_spec.rb')
-rw-r--r--spec/active_relation/unit/relations/order_spec.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/spec/active_relation/unit/relations/order_spec.rb b/spec/active_relation/unit/relations/order_spec.rb
index db322fe00b..e8a2f4c227 100644
--- a/spec/active_relation/unit/relations/order_spec.rb
+++ b/spec/active_relation/unit/relations/order_spec.rb
@@ -18,20 +18,6 @@ module ActiveRelation
end
end
- describe '#qualify' do
- it "descends" do
- Order.new(@relation, @attribute).qualify. \
- should == Order.new(@relation, @attribute).descend(&:qualify)
- end
- end
-
- describe '#descend' do
- it "distributes a block over the relation and attributes" do
- Order.new(@relation, @attribute).descend(&:qualify). \
- should == Order.new(@relation.descend(&:qualify), @attribute.qualify)
- end
- end
-
describe '#to_sql' do
describe "when given an attribute" do
it "manufactures sql with an order clause populated by the attribute" do