diff options
Diffstat (limited to 'spec/engines/memory/unit/relations/skip_spec.rb')
-rw-r--r-- | spec/engines/memory/unit/relations/skip_spec.rb | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/spec/engines/memory/unit/relations/skip_spec.rb b/spec/engines/memory/unit/relations/skip_spec.rb index 4cf6c020bc..abb87d2e38 100644 --- a/spec/engines/memory/unit/relations/skip_spec.rb +++ b/spec/engines/memory/unit/relations/skip_spec.rb @@ -15,10 +15,15 @@ module Arel @relation \ .skip(1) \ .tap do |relation| - relation.call.should == [ - Row.new(relation, [2, 'duck']), - Row.new(relation, [3, 'goose']), - ] + rows = relation.call + rows.length.should == 2 + one, two = *rows + + one.relation.should == relation + one.tuple.should == [2, 'duck'] + + two.relation.should == relation + two.tuple.should == [3, 'goose'] end end end |