Sha256: b54a063b5d72ffd38a3152eec94a1b55bdafe50f9e9e9002ef987c5d656d1e32

Contents?: true

Size: 536 Bytes

Versions: 51

Compression:

Stored size: 536 Bytes

Contents

RSpec.describe Metasploit::Credential::BlankUsername, 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) }
      it { is_expected.to have_db_column(:type).of_type(:string).with_options(null: false) }
    end

    context 'indices' do
      it { is_expected.to have_db_index(:username).unique(true) }
    end
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
metasploit-credential-6.0.11 spec/models/metasploit/credential/blank_username_spec.rb
metasploit-credential-6.0.10 spec/models/metasploit/credential/blank_username_spec.rb
metasploit-credential-6.0.9 spec/models/metasploit/credential/blank_username_spec.rb
metasploit-credential-6.0.8 spec/models/metasploit/credential/blank_username_spec.rb
metasploit-credential-6.0.7 spec/models/metasploit/credential/blank_username_spec.rb
metasploit-credential-6.0.6 spec/models/metasploit/credential/blank_username_spec.rb
metasploit-credential-6.0.5 spec/models/metasploit/credential/blank_username_spec.rb
metasploit-credential-6.0.4 spec/models/metasploit/credential/blank_username_spec.rb
metasploit-credential-6.0.3 spec/models/metasploit/credential/blank_username_spec.rb
metasploit-credential-6.0.2 spec/models/metasploit/credential/blank_username_spec.rb
metasploit-credential-6.0.1 spec/models/metasploit/credential/blank_username_spec.rb
metasploit-credential-6.0.0 spec/models/metasploit/credential/blank_username_spec.rb
metasploit-credential-5.0.9 spec/models/metasploit/credential/blank_username_spec.rb
metasploit-credential-5.0.8 spec/models/metasploit/credential/blank_username_spec.rb
metasploit-credential-5.0.7 spec/models/metasploit/credential/blank_username_spec.rb
metasploit-credential-5.0.6 spec/models/metasploit/credential/blank_username_spec.rb
metasploit-credential-5.0.5 spec/models/metasploit/credential/blank_username_spec.rb
metasploit-credential-5.0.4 spec/models/metasploit/credential/blank_username_spec.rb
metasploit-credential-5.0.3 spec/models/metasploit/credential/blank_username_spec.rb
metasploit-credential-5.0.2 spec/models/metasploit/credential/blank_username_spec.rb