Sha256: 650b63037f4f87f50f3ef6d26976d067f1a7bc76f95bfa324533c158add48a52

Contents?: true

Size: 373 Bytes

Versions: 16

Compression:

Stored size: 373 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

  let(:object) do
    Class.new(described_class) do
      constraint Tautology
    end
  end

  it_should_behave_like 'a command method'
  it_should_behave_like 'an idempotent method'

  it { should be_frozen }

  its(:constraint) { should be_frozen }
end

Version data entries

16 entries across 14 versions & 4 rubygems

Version Path
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/axiom-types-0.1.1/spec/unit/axiom/types/type/class_methods/finalize_spec.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/axiom-types-0.1.1/spec/unit/axiom/types/type/class_methods/finalize_spec.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/axiom-types-0.1.1/spec/unit/axiom/types/type/class_methods/finalize_spec.rb
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/axiom-types-0.1.1/spec/unit/axiom/types/type/class_methods/finalize_spec.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/axiom-types-0.1.1/spec/unit/axiom/types/type/class_methods/finalize_spec.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/axiom-types-0.1.1/spec/unit/axiom/types/type/class_methods/finalize_spec.rb
config_gems_initialization_aim-0.1.4 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/axiom-types-0.1.1/spec/unit/axiom/types/type/class_methods/finalize_spec.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/config_gems_initialization_aim-0.1.1/vendor/bundle/ruby/2.5.0/gems/axiom-types-0.1.1/spec/unit/axiom/types/type/class_methods/finalize_spec.rb
config_gems_initialization_aim-0.1.3 vendor/bundle/ruby/2.5.0/gems/axiom-types-0.1.1/spec/unit/axiom/types/type/class_methods/finalize_spec.rb
axiom-types-0.1.1 spec/unit/axiom/types/type/class_methods/finalize_spec.rb
axiom-types-0.1.0 spec/unit/axiom/types/type/class_methods/finalize_spec.rb
axiom-types-0.0.5 spec/unit/axiom/types/type/class_methods/finalize_spec.rb
axiom-types-0.0.4 spec/unit/axiom/types/type/class_methods/finalize_spec.rb
axiom-types-0.0.3 spec/unit/axiom/types/type/class_methods/finalize_spec.rb
axiom-types-0.0.2 spec/unit/axiom/types/type/class_methods/finalize_spec.rb
axiom-types-0.0.1 spec/unit/axiom/types/type/class_methods/finalize_spec.rb