Sha256: 72e8ae1e5b0beb8ccd794b5024bb9599d7dd286e1580e4c2dc47842defeb0c49
Contents?: true
Size: 511 Bytes
Versions: 1
Compression:
Stored size: 511 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Relation, '#include?' do subject { object.include?(tuple) } let(:object) { described_class.new(header, [ [ 1 ] ]) } let(:header) { Relation::Header.coerce([ [ :id, Integer ] ]) } context 'when the tuple is in the relation' do let(:tuple) { Tuple.new(header, [ 1 ]) } it { should be(true) } end context 'when the tuple is not in the relation' do let(:tuple) { Tuple.new(header, [ 2 ]) } it { should be(false) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.1.0 | spec/unit/axiom/relation/include_predicate_spec.rb |