Sha256: 58a36e5c3cbb0662ede34d35007dce96ea4230a0988bb2f4bae39b5d5cb679ef
Contents?: true
Size: 522 Bytes
Versions: 5
Compression:
Stored size: 522 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Algebra::Restriction, '#predicate' do subject { object.predicate } let(:base) { Relation.new([ [ :id, Integer ] ], [ [ 1 ] ]) } let(:predicate) { base[:id].eq(1) } let(:relation) { base.restrict { predicate } } let(:object) { described_class.new(relation) } before do object.operation.should be_kind_of(Algebra::Restriction) end it { should equal(predicate) } end
Version data entries
5 entries across 5 versions & 2 rubygems