1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

test organization

This commit is contained in:
Nick Kallen 2008-03-16 18:32:57 -07:00
parent cae95fc02a
commit 9771b2f3a3

View file

@ -77,12 +77,12 @@ module ActiveRelation
end
end
describe 'with simple relations' do
describe 'when joining simple relations' do
describe '#attributes' do
it 'combines the attributes of the two relations' do
simple_join = Join.new("INNER JOIN", @relation1, @relation2, @predicate)
simple_join.attributes.should ==
(@relation1.attributes + @relation2.attributes).collect { |a| a.bind(simple_join) }
join = Join.new("INNER JOIN", @relation1, @relation2, @predicate)
join.attributes.should ==
(@relation1.attributes + @relation2.attributes).collect { |a| a.bind(join) }
end
end