Sha256: 47ee802a5965bf175caf885f9a5c7263c8dd238ec34cfd0e3873233827c3459a
Contents?: true
Size: 467 Bytes
Versions: 1
Compression:
Stored size: 467 Bytes
Contents
require 'spec_helper' describe 'Veritas::Algebra::Restriction#predicate' do subject { object.predicate } let(:klass) { Algebra::Restriction } let(:relation) { Relation.new([ [ :id, Integer ] ], [ [ 1 ] ]) } let(:predicate) { relation[:id].ne(0) } let(:object) { klass.new(relation, predicate) } it_should_behave_like 'an idempotent method' it { should equal(predicate) } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/algebra/restriction/predicate_spec.rb |