aboutsummaryrefslogtreecommitdiffstats
path: root/spec/relations/join_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/relations/join_spec.rb')
-rw-r--r--spec/relations/join_spec.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/spec/relations/join_spec.rb b/spec/relations/join_spec.rb
index 47e468a9f9..3894d175e8 100644
--- a/spec/relations/join_spec.rb
+++ b/spec/relations/join_spec.rb
@@ -13,6 +13,7 @@ describe "Arel" do
r.attribute :id, Arel::Attributes::Integer
r.attribute :owner_id, Arel::Attributes::Integer
+ r.attribute :name, Arel::Attributes::String
r.attribute :age, Arel::Attributes::Integer
end
end
@@ -28,9 +29,10 @@ describe "Arel" do
8.times do |i|
thing_id = owner_id * 8 + i
age = 2 * thing_id
+ name = "Name#{thing_id}"
- @thing.insert([thing_id, owner_id, age])
- @expected << Arel::Row.new(@relation, [thing_id, owner_id, age, owner_id])
+ @thing.insert([thing_id, owner_id, name, age])
+ @expected << Arel::Row.new(@relation, [thing_id, owner_id, name, age, owner_id])
end
end
end