Sha256: 5616b7df458d18f774472ddabec01605a16ad8ceaec7ac6e72330aa897ad6dac
Contents?: true
Size: 488 Bytes
Versions: 2
Compression:
Stored size: 488 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Relation::Materialized::EmptyOperand, '#optimizable?' do subject { object.optimizable? } let(:relation) { Relation.new([[:id, Integer]], body) } let(:object) { described_class.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