diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-01-21 18:22:55 -0800 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-01-21 18:22:55 -0800 |
commit | d62ace142ce873c72eb916f5a14aa33a67ecfb86 (patch) | |
tree | 049a03b997366e770429c85ced3453bc92c2f3d5 /spec/active_relation/relations/alias_spec.rb | |
parent | b47ac80a17d7a74e1b5deac0e63a72960a4da453 (diff) | |
download | rails-d62ace142ce873c72eb916f5a14aa33a67ecfb86.tar.gz rails-d62ace142ce873c72eb916f5a14aa33a67ecfb86.tar.bz2 rails-d62ace142ce873c72eb916f5a14aa33a67ecfb86.zip |
completed initial functionality for joining with aggregation (the meaning of which is joining on a subselect/derived table); the big change is the introduction of a #projections protected method; this is a private version of #attributes which preserves implementation information (e.g., the name of the function called)
Diffstat (limited to 'spec/active_relation/relations/alias_spec.rb')
-rw-r--r-- | spec/active_relation/relations/alias_spec.rb | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/spec/active_relation/relations/alias_spec.rb b/spec/active_relation/relations/alias_spec.rb index 418af7fe66..6c203990eb 100644 --- a/spec/active_relation/relations/alias_spec.rb +++ b/spec/active_relation/relations/alias_spec.rb @@ -25,14 +25,5 @@ module ActiveRelation @alias_relation[:does_not_exist].should be_nil end end - - describe '#to_sql' do - it "manufactures an aliased select query" do - @alias_relation.to_sql.should be_like(""" - SELECT `foo`.`name`, `foo`.`id` - FROM `users` AS `foo` - """) - end - end end end
\ No newline at end of file |