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