diff options
Diffstat (limited to 'spec/engines/memory/unit/relations/array_spec.rb')
-rw-r--r-- | spec/engines/memory/unit/relations/array_spec.rb | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/spec/engines/memory/unit/relations/array_spec.rb b/spec/engines/memory/unit/relations/array_spec.rb index dcec2afa19..65bfb4025f 100644 --- a/spec/engines/memory/unit/relations/array_spec.rb +++ b/spec/engines/memory/unit/relations/array_spec.rb @@ -21,11 +21,12 @@ module Arel describe '#call' do it "manufactures an array of hashes of attributes to values" do - @relation.call.should == [ - Row.new(@relation, [1, 'duck']), - Row.new(@relation, [2, 'duck']), - Row.new(@relation, [3, 'goose']) - ] + rows = @relation.call + rows.length.should == 3 + @relation.array.zip(rows).each do |tuple, row| + row.relation.should == @relation + row.tuple.should == tuple + end end end end |