Sha256: b310f64b4ed1f1c1b6f3fd0e9bd39eec5da94a29d7e95a3c0136edc23b0cf9e3
Contents?: true
Size: 488 Bytes
Versions: 1
Compression:
Stored size: 488 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Optimizer, '#optimizable?' do subject { object.optimizable? } 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#optimizable? must be implemented') } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
axiom-optimizer-0.1.1 | spec/unit/axiom/optimizer/optimizable_predicate_spec.rb |