Sha256: 299feedc5b8647a95fdfdb4c4a68c9f518653615192f5d876fac4d86b9c1a457
Contents?: true
Size: 649 Bytes
Versions: 2
Compression:
Stored size: 649 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Algebra::Difference::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.difference(right) } let(:object) { described_class.new(relation) } before do object.should be_optimizable end it { should be_kind_of(Relation::Empty) } its(:header) { should equal(header) } its(:tuples) { should equal(relation) } end
Version data entries
2 entries across 2 versions & 1 rubygems