Sha256: d5609182d0e95eceefc62b77cb3a7abd384829a45af65a63c894cd8d7ba6e86b

Contents?: true

Size: 521 Bytes

Versions: 144

Compression:

Stored size: 521 Bytes

Contents

FactoryGirl.define do
  factory :mdm_user, :class => Mdm::User do
    admin true
    company "Interplanetary Teleportation, LTD"
    email "rwillingham@itl.com"
    fullname { generate :mdm_user_fullname }
    phone "5123334444"
    username { generate :mdm_user_username }
  end

  factory :non_admin_mdm_user, :parent => :mdm_user do
    admin false
  end

  sequence :mdm_user_fullname do |n|
    "Mdm User Fullname the #{n.ordinalize}"
  end

  sequence :mdm_user_username do |n|
    "mdm_user_username#{n}"
  end
end

Version data entries

144 entries across 144 versions & 1 rubygems

Version Path
metasploit_data_models-0.7.0-java spec/factories/mdm/users.rb
metasploit_data_models-0.6.16 spec/factories/mdm/users.rb
metasploit_data_models-0.6.14 spec/factories/mdm/users.rb
metasploit_data_models-0.6.13 spec/factories/mdm/users.rb