Sha256: 73ccd5f5d340d9bc17bb44b4887a1c387d04d78df50fcf927ed8a331f2a3a688
Contents?: true
Size: 393 Bytes
Versions: 2
Compression:
Stored size: 393 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Algebra::Restriction, '#predicate' do subject { object.predicate } let(:relation) { Relation.new([[:id, Integer]], [[1]]) } let(:predicate) { relation[:id].ne(0) } let(:object) { described_class.new(relation, predicate) } it_should_behave_like 'an idempotent method' it { should be(predicate) } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.2.0 | spec/unit/axiom/algebra/restriction/predicate_spec.rb |
axiom-0.1.1 | spec/unit/axiom/algebra/restriction/predicate_spec.rb |