Sha256: b0d579332a707d8fd3a4ed411438da18d5d2c4cf622b224a27beac92546b5c63
Contents?: true
Size: 656 Bytes
Versions: 3
Compression:
Stored size: 656 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Relation::Operation::Binary::LeftOrderOperand, '#optimize' do subject { object.optimize } let(:base) { Relation.new([ [ :id, Integer ] ], [].each) } let(:left) { base.sort_by { |r| r.id } } let(:right) { base } let(:relation) { left.union(right) } let(:object) { described_class.new(relation) } before do object.should be_optimizable end it { should be_kind_of(relation.class) } its(:left) { should equal(base) } its(:right) { should equal(right) } end
Version data entries
3 entries across 3 versions & 1 rubygems