Sha256: 8384d980e747bdaaa30bc2cca3e64307f6f50fe772bd5132ac0feecde1cb8980
Contents?: true
Size: 739 Bytes
Versions: 24
Compression:
Stored size: 739 Bytes
Contents
require 'spec_helper' describe Metasploit::Credential::BlankUsername do it_should_behave_like 'Metasploit::Concern.run' context 'database' do context 'columns' do it_should_behave_like 'timestamp database columns' it { should have_db_column(:username).of_type(:string).with_options(null: false) } it { should have_db_column(:type).of_type(:string).with_options(null: false) } end context 'indices' do it { should have_db_index(:username).unique(true) } end end context 'mass assignment security' do it { should_not allow_mass_assignment_of(:created_at) } it { should_not allow_mass_assignment_of(:updated_at) } it { should allow_mass_assignment_of(:username) } end end
Version data entries
24 entries across 24 versions & 1 rubygems