diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-03-12 22:41:30 -0700 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-03-12 22:41:30 -0700 |
commit | 2654c29bfdb2ccddfed8cceaaaba06e46892bdb9 (patch) | |
tree | cc7ab650792019aa4839036f1283f83801364537 /spec/active_relation/unit/relations/range_spec.rb | |
parent | 46da601b2f5507325bba279d5c12ed88ce9e685e (diff) | |
download | rails-2654c29bfdb2ccddfed8cceaaaba06e46892bdb9.tar.gz rails-2654c29bfdb2ccddfed8cceaaaba06e46892bdb9.tar.bz2 rails-2654c29bfdb2ccddfed8cceaaaba06e46892bdb9.zip |
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
Diffstat (limited to 'spec/active_relation/unit/relations/range_spec.rb')
-rw-r--r-- | spec/active_relation/unit/relations/range_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |