Sha256: bd4085d355bfebaddea3ab0ecdc980f65aced5e1644e66cb7d6b611a044a1587
Contents?: true
Size: 661 Bytes
Versions: 2
Compression:
Stored size: 661 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Relation::Operation::Unary::EmptyOperand, '#optimizable?' do subject { object.optimizable? } let(:header) { double('Header') } let(:relation) { double('Relation', operand: operand, header: header) } let(:object) { described_class.new(relation) } context 'when the operand is empty' do let(:operand) { Relation::Empty.new([[:id, Integer]]) } it { should be(true) } end context 'when the operand is not empty' do let(:operand) { Relation.new([[:id, Integer]], [[1]]) } it { should be(false) } end end
Version data entries
2 entries across 2 versions & 1 rubygems