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