spec/unit/axiom/optimizer/function/binary/constant_operands/optimize_spec.rb in axiom-optimizer-0.1.0 vs spec/unit/axiom/optimizer/function/binary/constant_operands/optimize_spec.rb in axiom-optimizer-0.1.1
- old
+ new
@@ -9,10 +9,10 @@
let(:function) { Function::Numeric::Addition.new(2, 2) }
let(:object) { described_class.new(function) }
before do
described_class.class_eval { include Optimizer::Function::Binary::ConstantOperands }
- object.should be_optimizable
+ expect(object).to be_optimizable
end
it { should be(4) }
end