Sha256: 4bcb7e31a23766a91718ff044f3f178d3a6e2e09f7f69617cc87058230571c35
Contents?: true
Size: 614 Bytes
Versions: 2
Compression:
Stored size: 614 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Function::Connective::Negation::InvertibleOperand, '#optimize' do subject { object.optimize } let(:attribute) { Attribute::Integer.new(:id) } let(:operand) { attribute.eq(1) } let(:negation) { Function::Connective::Negation.new(operand) } let(:object) { described_class.new(negation) } before do expect(object).to be_optimizable end it { should be_kind_of(Function::Predicate::Inequality) } its(:left) { should be(attribute) } its(:right) { should == 1 } end
Version data entries
2 entries across 2 versions & 1 rubygems