Sha256: a6ee7b875c38fcb41b9f9c976f24e2dcd1d0934f3e3f7b482a9d01627806a0f0
Contents?: true
Size: 654 Bytes
Versions: 1
Compression:
Stored size: 654 Bytes
Contents
require 'spec_helper' describe 'Veritas::Relation::Materialized#empty?' do subject { object.empty? } let(:klass) { Relation::Materialized } let(:header) { [ [ :id, Integer ] ] } let(:object) { klass.new(header, body) } context 'with a body containing no entries' do let(:body) { [] } it { should be(true) } it 'does not execute body#each' do body.should_not_receive(:each) subject end end context 'with a body containing an entry' do let(:body) { [ [ 1 ] ] } it { should be(false) } it 'does not execute body#each' do body.should_not_receive(:each) subject end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/relation/materialized/empty_spec.rb |