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