Sha256: 7b9abba63b86a6e86c2c37a5d294e86a4e3f0ffde3057e3682f6e932d76d8253
Contents?: true
Size: 573 Bytes
Versions: 2
Compression:
Stored size: 573 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Algebra::Intersection::EmptyLeft, '#optimize' do subject { object.optimize } let(:header) { Relation::Header.coerce([[:id, Integer]]) } let(:left) { Relation::Empty.new(header) } 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