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-2.0.17 spec/factories/mdm/users.rb
metasploit_data_models-2.0.16 spec/factories/mdm/users.rb
metasploit_data_models-2.0.15 spec/factories/mdm/users.rb
metasploit_data_models-2.0.14 spec/factories/mdm/users.rb
metasploit_data_models-2.0.13 spec/factories/mdm/users.rb
metasploit_data_models-2.0.12 spec/factories/mdm/users.rb
metasploit_data_models-2.0.11 spec/factories/mdm/users.rb
metasploit_data_models-2.0.10 spec/factories/mdm/users.rb
metasploit_data_models-2.0.9 spec/factories/mdm/users.rb
metasploit_data_models-2.0.8 spec/factories/mdm/users.rb
metasploit_data_models-2.0.7 spec/factories/mdm/users.rb
metasploit_data_models-2.0.6 spec/factories/mdm/users.rb
metasploit_data_models-2.0.5 spec/factories/mdm/users.rb
metasploit_data_models-2.0.4 spec/factories/mdm/users.rb
metasploit_data_models-2.0.1 spec/factories/mdm/users.rb
metasploit_data_models-2.0.0 spec/factories/mdm/users.rb
metasploit_data_models-1.3.0 spec/factories/mdm/users.rb
metasploit_data_models-1.2.11 spec/factories/mdm/users.rb
metasploit_data_models-1.2.10 spec/factories/mdm/users.rb
metasploit_data_models-1.2.9 spec/factories/mdm/users.rb