diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-05-17 11:59:03 -0700 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-05-17 11:59:03 -0700 |
commit | 3f55d33e530da1b5c454e0cfe920462d497649c8 (patch) | |
tree | 261b7a842ce9b2733bc7803b5d67a14356db6216 /spec/arel/integration/joins | |
parent | 732b222126bd6b37925a4fcdcda832de65858122 (diff) | |
download | rails-3f55d33e530da1b5c454e0cfe920462d497649c8.tar.gz rails-3f55d33e530da1b5c454e0cfe920462d497649c8.tar.bz2 rails-3f55d33e530da1b5c454e0cfe920462d497649c8.zip |
simplificatin of attribute division
Diffstat (limited to 'spec/arel/integration/joins')
-rw-r--r-- | spec/arel/integration/joins/with_aggregations_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/arel/integration/joins/with_aggregations_spec.rb b/spec/arel/integration/joins/with_aggregations_spec.rb index e6af920d32..b9cb4acc31 100644 --- a/spec/arel/integration/joins/with_aggregations_spec.rb +++ b/spec/arel/integration/joins/with_aggregations_spec.rb @@ -16,6 +16,10 @@ module Arel end describe '#attributes' do + it '' do + @relation1.join(@aggregation).on(@predicate)[@relation2[:user_id]].should_not be_nil + end + it 'it transforms aggregate expressions into attributes' do join_with_aggregation = Join.new("INNER JOIN", @relation1, @aggregation, @predicate) join_with_aggregation.attributes.should == |