Sha256: 9a7f35f90f41745ffab43b91242710fa6c8387ac838ec36b33d0ee36aeeaa15b
Contents?: true
Size: 541 Bytes
Versions: 4
Compression:
Stored size: 541 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Algebra::Union::EmptyLeft, '#optimize' do subject { object.optimize } let(:header) { Relation::Header.new([ [ :id, Integer ] ]) } let(:left) { Relation::Empty.new(header) } let(:right) { Relation.new(header, [ [ 2 ] ].each) } let(:relation) { left.union(right) } let(:object) { described_class.new(relation) } before do object.should be_optimizable end it { should equal(right) } end
Version data entries
4 entries across 4 versions & 1 rubygems