Sha256: dbd4720171fa833eb66a0e69a69fec7c9ebc3fa7a5c95f8428b476b27ee3b978

Contents?: true

Size: 489 Bytes

Versions: 5

Compression:

Stored size: 489 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Optimizer, '#optimizable?' do
  subject { object.optimizable? }

  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#optimizable? must be implemented') }
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
axiom-optimizer-0.1.0 spec/unit/axiom/optimizer/optimizable_predicate_spec.rb
veritas-optimizer-0.0.7 spec/unit/veritas/optimizer/optimizable_spec.rb
veritas-optimizer-0.0.6 spec/unit/veritas/optimizer/optimizable_spec.rb
veritas-optimizer-0.0.5 spec/unit/veritas/optimizer/optimizable_spec.rb
veritas-optimizer-0.0.4 spec/unit/veritas/optimizer/optimizable_spec.rb