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