Sha256: a1b7c6dae2fb4886154da1e35f3a22abced402e6dcf1f9e7abdff87403025e81
Contents?: true
Size: 1 KB
Versions: 3
Compression:
Stored size: 1 KB
Contents
RSpec.describe Metasploit::Credential::Origin::Import, type: :model do it_should_behave_like 'Metasploit::Concern.run' context 'associations' do it { is_expected.to have_many(:cores).class_name('Metasploit::Credential::Core').dependent(:destroy) } it { is_expected.to belong_to(:task).class_name('Mdm::Task') } end context 'database' do context 'columns' do it { is_expected.to have_db_column(:filename).of_type(:text).with_options(null: false) } it_should_behave_like 'timestamp database columns' context 'foreign keys' do it { is_expected.to have_db_column(:task_id).of_type(:integer) } end end context 'indices' do context 'foreign keys' do it { is_expected.to have_db_index(:task_id) } end end end context 'factories' do include_context 'Mdm::Workspace' subject(:metasploit_credential_origin_import) do FactoryGirl.build(:metasploit_credential_origin_import) end it { is_expected.to be_valid } end end
Version data entries
3 entries across 3 versions & 1 rubygems