spec/unit/axiom/optimizer/function/unary/unoptimized_operand/optimize_spec.rb in axiom-optimizer-0.1.0 vs spec/unit/axiom/optimizer/function/unary/unoptimized_operand/optimize_spec.rb in axiom-optimizer-0.1.1
- old
+ new
@@ -9,10 +9,10 @@
let(:function) { Function::Numeric::Absolute.new(Function::Numeric::Absolute.new(1)) }
let(:object) { described_class.new(function) }
before do
described_class.class_eval { include Optimizer::Function::Unary::UnoptimizedOperand }
- object.should be_optimizable
+ expect(object).to be_optimizable
end
it { should eql(Function::Numeric::Absolute.new(1)) }
end