Sha256: be886ea85f1f46235eeed3115d62423e4a718d12d7dab8fde5375bb37022b1b3
Contents?: true
Size: 571 Bytes
Versions: 2
Compression:
Stored size: 571 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Algebra::Difference::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.difference(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