Sha256: 63dc015697283f7acd52eb0e9eb250c318745cac1e6e87ef3862561b9f04b033
Contents?: true
Size: 644 Bytes
Versions: 2
Compression:
Stored size: 644 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer::Function::Connective::Binary::RedundantLeft, '#optimize' do subject { object.optimize } let(:attribute) { Attribute::Integer.new(:id) } let(:left) { attribute.include([1]) } let(:right) { attribute.exclude([2]) } let(:connective) { left.and(right).and(right) } let(:object) { described_class.new(connective) } before do expect(object).to be_optimizable end it { should be_kind_of(Function::Connective::Conjunction) } its(:left) { should eql(attribute.eq(1)) } its(:right) { should eql(attribute.ne(2)) } end
Version data entries
2 entries across 2 versions & 1 rubygems