Sha256: bc49c7c6f7f0bbe32ae59989cbde8962bcfbda23e93375bd994d4bbe94aa77c4
Contents?: true
Size: 571 Bytes
Versions: 2
Compression:
Stored size: 571 Bytes
Contents
require 'spec_helper' describe 'Veritas::Optimizer::Relation::Materialized::EmptyOperand#optimizable?' do subject { object.optimizable? } let(:klass) { Optimizer::Relation::Materialized::EmptyOperand } let(:relation) { Relation.new([ [ :id, Integer ] ], body) } let(:object) { klass.new(relation) } context 'with a body containing no entries' do let(:body) { [] } it { should be(true) } end context 'with a body containing an entry' do let(:body) { [ [ 1 ] ] } it { should be(false) } end end
Version data entries
2 entries across 2 versions & 1 rubygems