Sha256: 10983188732fad824d5aa9c93a6646146d5dce3ecd0eae69732dfea7d038f8e0
Contents?: true
Size: 581 Bytes
Versions: 2
Compression:
Stored size: 581 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]], LazyEnumerable.new([[1], [2]])) } let(:object) { relation.sort_by { |r| r.id } } it { should be_instance_of(Relation::Operation::Reverse) } it 'behaves the same as Array#reverse' do should == relation.to_a.reverse end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.2.0 | spec/unit/axiom/relation/operation/reverse/methods/reverse_spec.rb |
axiom-0.1.1 | spec/unit/axiom/relation/operation/reverse/methods/reverse_spec.rb |