Sha256: fe00ba14c779807f5df4ddb6bf8cd37c00d2151ecab95c3b1f341a2ee58f170e
Contents?: true
Size: 695 Bytes
Versions: 16
Compression:
Stored size: 695 Bytes
Contents
RSpec.describe Metasploit::Credential::Username, type: :model do it_should_behave_like 'Metasploit::Concern.run' context 'database' do context 'columns' do it_should_behave_like 'timestamp database columns' it { is_expected.to have_db_column(:username).of_type(:string).with_options(null: false) } end context 'indices' do it { is_expected.to have_db_index(:username).unique(true) } end end context 'validations' do context 'username' do subject { FactoryGirl.build(:metasploit_credential_username) } it { is_expected.to validate_presence_of :username } it { is_expected.to validate_uniqueness_of :username } end end end
Version data entries
16 entries across 16 versions & 1 rubygems