From 2654c29bfdb2ccddfed8cceaaaba06e46892bdb9 Mon Sep 17 00:00:00 2001 From: Nick Kallen Date: Wed, 12 Mar 2008 22:41:30 -0700 Subject: test coverage of #prefix_for on join. - it delegates to the relation containing the attribute - if the relation containing the attribute is an alias, it returns the alias --- spec/active_relation/unit/relations/range_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/active_relation/unit/relations/range_spec.rb') diff --git a/spec/active_relation/unit/relations/range_spec.rb b/spec/active_relation/unit/relations/range_spec.rb index 7be2ca1b03..a0207c7342 100644 --- a/spec/active_relation/unit/relations/range_spec.rb +++ b/spec/active_relation/unit/relations/range_spec.rb @@ -14,7 +14,7 @@ module ActiveRelation end describe '#descend' do - it "distributes over the relation" do + it "distributes a block over the relation" do Range.new(@relation, @range).descend(&:qualify).should == Range.new(@relation.descend(&:qualify), @range) end end -- cgit v1.2.3