Sha256: d6f306aa248ed57113d924bd8b00897cdce4a2e831da7e9738ad7652fe850e16
Contents?: true
Size: 441 Bytes
Versions: 2
Compression:
Stored size: 441 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Relation::Materialized, '#empty?' do subject { object.empty? } let(:header) { [[:id, Integer]] } let(:object) { described_class.new(header, body) } 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
Version | Path |
---|---|
axiom-0.2.0 | spec/unit/axiom/relation/materialized/empty_predicate_spec.rb |
axiom-0.1.1 | spec/unit/axiom/relation/materialized/empty_predicate_spec.rb |