diff options
author | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-05-16 17:10:35 -0700 |
---|---|---|
committer | Nick Kallen <nkallen@nick-kallens-computer-2.local> | 2008-05-16 17:10:35 -0700 |
commit | b06d351b701906efab737894be674c66561ec524 (patch) | |
tree | 3265dc32cb4eb7287e5f718c2131781cd45d0afc /spec/arel | |
parent | c96155c4fdd9a15eeca6e59ca3f35197d2ad3541 (diff) | |
download | rails-b06d351b701906efab737894be674c66561ec524.tar.gz rails-b06d351b701906efab737894be674c66561ec524.tar.bz2 rails-b06d351b701906efab737894be674c66561ec524.zip |
this is as close as it's been
Diffstat (limited to 'spec/arel')
-rw-r--r-- | spec/arel/integration/joins/with_adjacency_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/arel/integration/joins/with_adjacency_spec.rb b/spec/arel/integration/joins/with_adjacency_spec.rb index 4ffdf1f64f..ab63fecb46 100644 --- a/spec/arel/integration/joins/with_adjacency_spec.rb +++ b/spec/arel/integration/joins/with_adjacency_spec.rb @@ -107,6 +107,13 @@ module Arel .on(@predicate) \ .should disambiguate_attributes(@relation1[:id], @relation2[:id]) end + + it '' do + r0 = @relation1.select(@predicate) + r1 = r0.alias + r = r0.join(r1).on(@predicate) + r.should disambiguate_attributes(r0[:id], r1[:id]) + end end describe 'when the right relation is extremely compound' do |