Sha256: 205a5ddb3d618f40cf0da662596ed318a3315a74403d147ffe2b980047c7dc41
Contents?: true
Size: 499 Bytes
Versions: 2
Compression:
Stored size: 499 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.2.0 | spec/unit/axiom/relation/include_predicate_spec.rb |
axiom-0.1.1 | spec/unit/axiom/relation/include_predicate_spec.rb |