Sha256: af65e777152dbefaf9be4409799a9cc9abf4025724c6d2e28d63db7bf71bc401
Contents?: true
Size: 577 Bytes
Versions: 2
Compression:
Stored size: 577 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Algebra::Intersection::EqualOperands, '#optimize' do subject { object.optimize } let(:header) { Relation::Header.coerce([[:id, Integer]]) } let(:left) { Relation.new(header, LazyEnumerable.new([[1]])) } let(:right) { Relation.new(header, LazyEnumerable.new([[1]])) } let(:relation) { left.intersect(right) } let(:object) { described_class.new(relation) } before do expect(object).to be_optimizable end it { should be(left) } end
Version data entries
2 entries across 2 versions & 1 rubygems