Sha256: 0dd71de701f9fb1f1592f7ca79e32f37b06b598723a4540c02c248f3761f8027

Contents?: true

Size: 852 Bytes

Versions: 32

Compression:

Stored size: 852 Bytes

Contents

RSpec.describe Mdm::Module::Arch, type: :model do

  it_should_behave_like 'Metasploit::Concern.run'

  context 'associations' do
    it { is_expected.to belong_to(:detail).class_name('Mdm::Module::Detail') }
  end

  context 'database' do
    context 'columns' do
      it { is_expected.to have_db_column(:detail_id).of_type(:integer) }
      it { is_expected.to have_db_column(:name).of_type(:text) }
    end

    context 'indices' do
      it { is_expected.to have_db_index(:detail_id) }
    end
  end

  context 'factories' do
    context 'mdm_module_arch' do
      subject(:mdm_module_arch) do
        FactoryGirl.build(:mdm_module_arch)
      end

      it { is_expected.to be_valid }
    end
  end

  context 'validations' do
    it { is_expected.to validate_presence_of(:detail) }
    it { is_expected.to validate_presence_of(:name) }
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
metasploit_data_models-2.0.17 spec/app/models/mdm/module/arch_spec.rb
metasploit_data_models-2.0.16 spec/app/models/mdm/module/arch_spec.rb
metasploit_data_models-2.0.15 spec/app/models/mdm/module/arch_spec.rb
metasploit_data_models-2.0.14 spec/app/models/mdm/module/arch_spec.rb
metasploit_data_models-2.0.13 spec/app/models/mdm/module/arch_spec.rb
metasploit_data_models-2.0.12 spec/app/models/mdm/module/arch_spec.rb
metasploit_data_models-2.0.11 spec/app/models/mdm/module/arch_spec.rb
metasploit_data_models-2.0.10 spec/app/models/mdm/module/arch_spec.rb
metasploit_data_models-2.0.9 spec/app/models/mdm/module/arch_spec.rb
metasploit_data_models-2.0.8 spec/app/models/mdm/module/arch_spec.rb
metasploit_data_models-2.0.7 spec/app/models/mdm/module/arch_spec.rb
metasploit_data_models-2.0.6 spec/app/models/mdm/module/arch_spec.rb
metasploit_data_models-2.0.5 spec/app/models/mdm/module/arch_spec.rb
metasploit_data_models-2.0.4 spec/app/models/mdm/module/arch_spec.rb
metasploit_data_models-2.0.1 spec/app/models/mdm/module/arch_spec.rb
metasploit_data_models-2.0.0 spec/app/models/mdm/module/arch_spec.rb
metasploit_data_models-1.3.0 spec/app/models/mdm/module/arch_spec.rb
metasploit_data_models-1.2.11 spec/app/models/mdm/module/arch_spec.rb
metasploit_data_models-1.2.10 spec/app/models/mdm/module/arch_spec.rb
metasploit_data_models-1.2.9 spec/app/models/mdm/module/arch_spec.rb