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.17.1 spec/factories/mdm/users.rb
metasploit_data_models-0.17.0-java spec/factories/mdm/users.rb
metasploit_data_models-0.17.0 spec/factories/mdm/users.rb
metasploit_data_models-0.16.9 spec/factories/mdm/users.rb
metasploit_data_models-0.16.9-java spec/factories/mdm/users.rb
metasploit_data_models-0.16.8 spec/factories/mdm/users.rb
metasploit_data_models-0.16.8-java spec/factories/mdm/users.rb
metasploit_data_models-0.16.7-java spec/factories/mdm/users.rb
metasploit_data_models-0.16.7 spec/factories/mdm/users.rb
metasploit_data_models-0.16.6-java spec/factories/mdm/users.rb
metasploit_data_models-0.16.6 spec/factories/mdm/users.rb
metasploit_data_models-0.16.5-java spec/factories/mdm/users.rb
metasploit_data_models-0.16.5 spec/factories/mdm/users.rb
metasploit_data_models-0.16.4-java spec/factories/mdm/users.rb
metasploit_data_models-0.16.4 spec/factories/mdm/users.rb
metasploit_data_models-0.16.3-java spec/factories/mdm/users.rb
metasploit_data_models-0.16.1-java spec/factories/mdm/users.rb
metasploit_data_models-0.16.1 spec/factories/mdm/users.rb
metasploit_data_models-0.16.0-java spec/factories/mdm/users.rb
metasploit_data_models-0.16.0 spec/factories/mdm/users.rb