Created
July 30, 2014 11:36
-
-
Save dawidlenkiewicz/daa88cc3f6d9faa4be03 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FactoryGirl.define do | |
factory :client_person do | |
first_name "Joe" | |
sequence(:last_name) { |n| "Doe#{n}" } | |
pesel { Rpg::Pesel.new(gender: :female, date: Time.at(0.0 + rand * (Time.now.to_f - 0.0.to_f)).strftime('%Y-%m-%d')).generate } | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment