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