Sha256: bb7048bdffa07143dfab8b57d31a84d35c216439351d4be9c487c3e08ac6f6f4

Contents?: true

Size: 476 Bytes

Versions: 1

Compression:

Stored size: 476 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Optimizer, '#optimize' do
  subject { object.optimize }

  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') }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axiom-optimizer-0.1.1 spec/unit/axiom/optimizer/optimize_spec.rb