spec/unit/axiom/optimizer/function/connective/binary/redundant_right/optimize_spec.rb in axiom-optimizer-0.1.0 vs spec/unit/axiom/optimizer/function/connective/binary/redundant_right/optimize_spec.rb in axiom-optimizer-0.1.1
- old
+ new
@@ -4,16 +4,16 @@
describe Optimizer::Function::Connective::Binary::RedundantRight, '#optimize' do
subject { object.optimize }
let(:attribute) { Attribute::Integer.new(:id) }
- let(:left) { attribute.include([ 1 ]) }
- let(:right) { attribute.exclude([ 2 ]) }
+ let(:left) { attribute.include([1]) }
+ let(:right) { attribute.exclude([2]) }
let(:connective) { left.and(left.and(right)) }
let(:object) { described_class.new(connective) }
before do
- object.should be_optimizable
+ expect(object).to be_optimizable
end
it { should be_kind_of(Function::Connective::Conjunction) }
its(:left) { should eql(attribute.eq(1)) }