Sha256: 6df2dce32a7126ec384df97255a907594024edbda843fce8ad1d3ddf99fb622f
Contents?: true
Size: 477 Bytes
Versions: 5
Compression:
Stored size: 477 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer, '#optimize' do subject { object.optimize } let(:described_class) { Class.new(Optimizer) } let(:operation) { mock('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') } end
Version data entries
5 entries across 5 versions & 2 rubygems