diff options
Diffstat (limited to 'spec/engines/memory/unit/relations/project_spec.rb')
-rw-r--r-- | spec/engines/memory/unit/relations/project_spec.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/engines/memory/unit/relations/project_spec.rb b/spec/engines/memory/unit/relations/project_spec.rb index 3970a50129..cf20573fd2 100644 --- a/spec/engines/memory/unit/relations/project_spec.rb +++ b/spec/engines/memory/unit/relations/project_spec.rb @@ -15,11 +15,11 @@ module Arel @relation \ .project(@relation[:id]) \ .tap do |relation| - relation.call.should == [ - Row.new(relation, [1]), - Row.new(relation, [2]), - Row.new(relation, [3]) - ] + rows = relation.call + @relation.array.zip(rows) do |tuple, row| + row.relation.should == relation + row.tuple.should == [tuple.first] + end end end end |