From d62ace142ce873c72eb916f5a14aa33a67ecfb86 Mon Sep 17 00:00:00 2001 From: Nick Kallen Date: Mon, 21 Jan 2008 18:22:55 -0800 Subject: 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) --- spec/active_relation/relations/alias_spec.rb | 9 --------- 1 file changed, 9 deletions(-) (limited to 'spec/active_relation/relations/alias_spec.rb') 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 -- cgit v1.2.3