Sha256: 79542fe8fe14c2fb16fbe654fa24c71f01b37f3741bed82c425cba29d7420e7d
Contents?: true
Size: 687 Bytes
Versions: 1
Compression:
Stored size: 687 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Relation::Operation::Offset::Methods, '#drop' do subject { object.drop(offset) } let(:described_class) { Relation } let(:offset) { 1 } let(:relation) { described_class.new([ [ :id, Integer ] ], [ [ 1 ], [ 2 ] ].each) } let(:object) { relation.order } it { should be_kind_of(Relation::Operation::Offset) } its(:offset) { should == offset } it 'behaves the same as Array#drop' do should == object.to_a.drop(1) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.4 | spec/unit/veritas/relation/operation/offset/methods/drop_spec.rb |