Sha256: 9ce152c3c65edb11f69e8562477b74313fc6bb19859207985cce2d6c844282cb

Contents?: true

Size: 363 Bytes

Versions: 4

Compression:

Stored size: 363 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Axiom::Types, '.finalize' do
  subject { object.finalize }

  let(:object)      { described_class               }
  let(:descendant)  { Class.new(Axiom::Types::Type) }

  it_should_behave_like 'a command method'

  it 'finalizes the descendants' do
    descendant.should_receive(:finalize)
    subject
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
axiom-types-0.0.5 spec/unit/axiom/types/class_methods/finalize_spec.rb
axiom-types-0.0.4 spec/unit/axiom/types/class_methods/finalize_spec.rb
axiom-types-0.0.3 spec/unit/axiom/types/class_methods/finalize_spec.rb
axiom-types-0.0.2 spec/unit/axiom/types/class_methods/finalize_spec.rb