Sha256: 05c26a0e6b93dbeda37bf808ebeafa5c8d2c9b10948b769c0fd2ab23d2b57a85
Contents?: true
Size: 711 Bytes
Versions: 2
Compression:
Stored size: 711 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.2.0 | spec/unit/axiom/relation/operation/offset/methods/drop_spec.rb |
axiom-0.1.1 | spec/unit/axiom/relation/operation/offset/methods/drop_spec.rb |