Sha256: e8e96a8b7418cd819b2204254e05581bd772e2f1b911d02049f720e95d264d86
Contents?: true
Size: 551 Bytes
Versions: 4
Compression:
Stored size: 551 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Algebra::Intersection::EqualOperands, '#optimize' do subject { object.optimize } let(:header) { Relation::Header.new([ [ :id, Integer ] ]) } let(:left) { Relation.new(header, [ [ 1 ] ].each) } let(:right) { Relation.new(header, [ [ 1 ] ].each) } let(:relation) { left.intersect(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