Sha256: 44ff86bfc2ab49b90d5c518892872cee0d29bb6b962e8f2ce78d93311997f3ab
Contents?: true
Size: 799 Bytes
Versions: 2
Compression:
Stored size: 799 Bytes
Contents
require 'spec_helper' describe Mdm::Module::Arch do it_should_behave_like 'Metasploit::Concern.run' context 'associations' do it { should belong_to(:detail).class_name('Mdm::Module::Detail') } end context 'database' do context 'columns' do it { should have_db_column(:detail_id).of_type(:integer) } it { should have_db_column(:name).of_type(:text) } end context 'indices' do it { should 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 { should be_valid } end end context 'validations' do it { should validate_presence_of(:detail) } it { should validate_presence_of(:name) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
metasploit_data_models-1.0.0.pre.rails.pre.4.0b | spec/app/models/mdm/module/arch_spec.rb |
metasploit_data_models-1.0.0.pre.rails.pre.4.0a | spec/app/models/mdm/module/arch_spec.rb |