Source

main / spec / factories.rb

# By using the symbol 'user' we get Factor irl to simular the User Model
# and the plans models

Factory.define :user do |user|
  user.first_name "Test"
  user.last_name "User"
  user.nonPartnerInstition "CDL"
end

Factory.sequence :email do |n|
  "person#{n}@example.com"
end

Factory.define :plan do |plan|
  plan.name "Test User NSF Plan"
  plan.solicitation_no "123"
  plan.desc "this is a test plan for user test user"
  plan.association :user
end