Sha256: 42eaf645383a86d8dacc14671a905cc8d1135da77f2c97aa4b3c498bf0ff90ee

Contents?: true

Size: 586 Bytes

Versions: 31

Compression:

Stored size: 586 Bytes

Contents

require 'spec_helper'

describe Metasploit::Model::EmailAddress,
         # setting the metadata type makes rspec-rails include RSpec::Rails::ModelExampleGroup, which includes a better
         # be_valid matcher that will print full error messages
         type: :model  do
  it_should_behave_like 'Metasploit::Model::EmailAddress',
                        namespace_name: 'Dummy' do
     def attribute_type(attribute)
      type_by_attribute = {
        domain: :string,
        full: :string,
        local: :string
      }

      type_by_attribute.fetch(attribute)
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
metasploit-model-0.25.3 spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.25.3-java spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.25.2 spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.25.2-java spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.25.1 spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.25.1-java spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.25.1.pre.metasploit.pre.model.pre.search.pre.operator.pre.and.pre.operation.pre.groups-java spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.25.1.pre.metasploit.pre.model.pre.search.pre.operator.pre.and.pre.operation.pre.groups spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.24.1-java spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.24.1 spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.24.1.pre.semantic.pre.versioning.pre.2.pre.0 spec/lib/metasploit/model/email_address_spec.rb