From b06d351b701906efab737894be674c66561ec524 Mon Sep 17 00:00:00 2001 From: Nick Kallen Date: Fri, 16 May 2008 17:10:35 -0700 Subject: this is as close as it's been --- spec/arel/integration/joins/with_adjacency_spec.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'spec/arel/integration/joins') 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 -- cgit v1.2.3