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.28.0 spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.28.0-java spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.28.0.pre.engine.pre.requires spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.27.4 spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.27.4-java spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.27.3 spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.27.3-java spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.27.2 spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.27.2-java spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.27.1 spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.27.1-java spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.27.0 spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.27.0-java spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.27.0.pre.dep.pre.railties spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.26.1-java spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.26.1 spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.25.7 spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.25.7-java spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.25.6 spec/lib/metasploit/model/email_address_spec.rb
metasploit-model-0.25.6-java spec/lib/metasploit/model/email_address_spec.rb