spec/unit/axiom/optimizer/function/connective/negation/invertible_operand/optimize_spec.rb in axiom-optimizer-0.1.0 vs spec/unit/axiom/optimizer/function/connective/negation/invertible_operand/optimize_spec.rb in axiom-optimizer-0.1.1
- old
+ new
@@ -9,14 +9,14 @@
let(:operand) { attribute.eq(1) }
let(:negation) { Function::Connective::Negation.new(operand) }
let(:object) { described_class.new(negation) }
before do
- object.should be_optimizable
+ expect(object).to be_optimizable
end
it { should be_kind_of(Function::Predicate::Inequality) }
- its(:left) { should equal(attribute) }
+ its(:left) { should be(attribute) }
its(:right) { should == 1 }
end