aboutsummaryrefslogtreecommitdiffstats
path: root/spec/active_relation/unit/relations/rename_spec.rb
diff options
context:
space:
mode:
authorNick Kallen <nkallen@nick-kallens-computer-2.local>2008-03-12 22:41:30 -0700
committerNick Kallen <nkallen@nick-kallens-computer-2.local>2008-03-12 22:41:30 -0700
commit2654c29bfdb2ccddfed8cceaaaba06e46892bdb9 (patch)
treecc7ab650792019aa4839036f1283f83801364537 /spec/active_relation/unit/relations/rename_spec.rb
parent46da601b2f5507325bba279d5c12ed88ce9e685e (diff)
downloadrails-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/rename_spec.rb')
-rw-r--r--spec/active_relation/unit/relations/rename_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/active_relation/unit/relations/rename_spec.rb b/spec/active_relation/unit/relations/rename_spec.rb
index c960f76736..9a63c4fc80 100644
--- a/spec/active_relation/unit/relations/rename_spec.rb
+++ b/spec/active_relation/unit/relations/rename_spec.rb
@@ -46,7 +46,7 @@ module ActiveRelation
end
describe '#descend' do
- it "distributes over the relation and renames" do
+ it "distributes a block over the relation and renames" do
Rename.new(@relation, @relation[:id] => :schmid).descend(&:qualify). \
should == Rename.new(@relation.descend(&:qualify), @relation[:id].qualify => :schmid)
end