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