spec/unit/axiom/optimizer/optimize_spec.rb in axiom-optimizer-0.1.1 vs spec/unit/axiom/optimizer/optimize_spec.rb in axiom-optimizer-0.2.0
- old
+ new
@@ -7,11 +7,7 @@
let(:described_class) { Class.new(Optimizer) }
let(:operation) { double('Operation') }
let(:object) { described_class.new(operation) }
- before do
- described_class.stub(:to_s).and_return('Optimizer')
- end
-
- specify { expect { subject }.to raise_error(NotImplementedError, 'Optimizer#optimize must be implemented') }
+ specify { expect { subject }.to raise_error(NotImplementedError, "#{described_class}#optimize is not implemented") }
end