docbrown/spec/factories/profiles.rb
Michael Kohl 7e0415c150
Make header fields in profile preview card dynamic (#14454)
* Make header fields in profile preview card dynamic

* Update comment
2021-08-11 09:34:30 +07:00

23 lines
598 B
Ruby

FactoryBot.define do
factory :profile do
user { association(:user, _skip_creating_profile: true) }
end
trait :with_DEV_info do
data do
{
currently_hacking_on: "JSON-LD",
currently_learning: "Preact",
education: "DEV University",
employer_name: "DEV",
employer_url: "http://dev.to",
employment_title: "Software Engineer",
skills_languages: "Ruby",
work: "Forem"
}
end
website_url { "http://example.com" }
location { "Halifax, Nova Scotia" }
summary { "I do things with computers" }
end
end