Sha256: 8559c1d0051d89ffb79613f3a1a0b8dd3a4db9eaf30195d2aa6b2e502ebc3c50
Contents?: true
Size: 552 Bytes
Versions: 4
Compression:
Stored size: 552 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Relation, '#empty?' do subject { object.empty? } let(:header) { [ [ :id, Integer ] ] } let(:object) { described_class.new(header, body) } before do object.should be_instance_of(described_class) 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
4 entries across 4 versions & 1 rubygems