Sha256: cdaa885c5affa99fbeb0c5ead3151d07cf73b7c0d76b999c7b6ff1708141023a
Contents?: true
Size: 599 Bytes
Versions: 3
Compression:
Stored size: 599 Bytes
Contents
require 'spec_helper' describe Metasploit::Credential::Username 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) } end context 'indices' do it { should have_db_index(:username).unique(true) } end end context 'validations' do context 'username' do it { should validate_presence_of :username } it { should validate_uniqueness_of :username } end end end
Version data entries
3 entries across 3 versions & 1 rubygems