Sha256: fcc0122c4a67e1e3af9da35696573214f49af818f195265132732e6c11dec6eb

Contents?: true

Size: 411 Bytes

Versions: 5

Compression:

Stored size: 411 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 equal(predicate) }
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
axiom-0.1.0 spec/unit/axiom/algebra/restriction/predicate_spec.rb
veritas-0.0.7 spec/unit/veritas/algebra/restriction/predicate_spec.rb
veritas-0.0.6 spec/unit/veritas/algebra/restriction/predicate_spec.rb
veritas-0.0.5 spec/unit/veritas/algebra/restriction/predicate_spec.rb
veritas-0.0.4 spec/unit/veritas/algebra/restriction/predicate_spec.rb