mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
test organization
This commit is contained in:
parent
cae95fc02a
commit
9771b2f3a3
1 changed files with 4 additions and 4 deletions
|
@ -77,12 +77,12 @@ module ActiveRelation
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'with simple relations' do
|
describe 'when joining simple relations' do
|
||||||
describe '#attributes' do
|
describe '#attributes' do
|
||||||
it 'combines the attributes of the two relations' do
|
it 'combines the attributes of the two relations' do
|
||||||
simple_join = Join.new("INNER JOIN", @relation1, @relation2, @predicate)
|
join = Join.new("INNER JOIN", @relation1, @relation2, @predicate)
|
||||||
simple_join.attributes.should ==
|
join.attributes.should ==
|
||||||
(@relation1.attributes + @relation2.attributes).collect { |a| a.bind(simple_join) }
|
(@relation1.attributes + @relation2.attributes).collect { |a| a.bind(join) }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue