Sha256: 1d31090f8cae50c61421cd6f2e32f2ba6412f398a6834c292c95ac49265ca8ac
Contents?: true
Size: 751 Bytes
Versions: 1
Compression:
Stored size: 751 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 ] ], LazyEnumerable.new([ [ 1 ], [ 2 ] ])) } let(:object) { relation.sort_by { |r| r.id } } it { should be_instance_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 |
---|---|
axiom-0.1.0 | spec/unit/axiom/relation/operation/offset/methods/drop_spec.rb |