diff options
Diffstat (limited to 'spec/algebra/unit/relations/join_spec.rb')
-rw-r--r-- | spec/algebra/unit/relations/join_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/algebra/unit/relations/join_spec.rb b/spec/algebra/unit/relations/join_spec.rb index 9c1422c571..5fa3269052 100644 --- a/spec/algebra/unit/relations/join_spec.rb +++ b/spec/algebra/unit/relations/join_spec.rb @@ -18,8 +18,7 @@ module Arel describe '#attributes' do it 'combines the attributes of the two relations' do join = InnerJoin.new(@relation1, @relation2, @predicate) - join.attributes.should == - (@relation1.attributes + @relation2.attributes).collect { |a| a.bind(join) } + join.attributes.should == (@relation1.attributes | @relation2.attributes).bind(join) end end end |