aboutsummaryrefslogtreecommitdiffstats
path: root/spec/active_relation
diff options
context:
space:
mode:
Diffstat (limited to 'spec/active_relation')
-rw-r--r--spec/active_relation/unit/relations/join_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/active_relation/unit/relations/join_spec.rb b/spec/active_relation/unit/relations/join_spec.rb
index 515c9ce0f2..30ac73b611 100644
--- a/spec/active_relation/unit/relations/join_spec.rb
+++ b/spec/active_relation/unit/relations/join_spec.rb
@@ -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