Sha256: 6083bc8b6a13b1c6b524af7b8563be3e470d4be67cf719733645c6158b506418
Contents?: true
Size: 650 Bytes
Versions: 3
Compression:
Stored size: 650 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Relation::Operation::Reverse::OrderOperand, '#optimize' do subject { object.optimize } let(:base) { Relation.new([ [ :id, Integer ] ], [ [ 1 ] ].each) } let(:operand) { base.sort_by { |r| r.id } } let(:relation) { operand.reverse } let(:object) { described_class.new(relation) } before do object.should be_optimizable end it { should be_kind_of(Relation::Operation::Order) } its(:operand) { should equal(base) } its(:directions) { should equal(relation.directions) } end
Version data entries
3 entries across 3 versions & 1 rubygems