* Make org proof a required field * Fix color picker and other minor org adjustments * Add MVP of org add'l sidebar * Add proof to org factory * Fix org create action and fix tests * Add new org fields to admin panel & lint * Add proof to org edit for backward compatibility * Add org info to edit preview * Move preview edit notice to inside article div * MVP of badge "final" steps * Add info to user sidebar and clean up badge commit * Modify sidebar for data * Add organization decorator * Add conditional so only users have new swipe nav, not orgs * Add cloudinary prefix to badges * Disallow duplicate badges
15 lines
652 B
Ruby
15 lines
652 B
Ruby
FactoryBot.define do
|
|
factory :organization do
|
|
name { Faker::Company.name }
|
|
summary { Faker::Hipster.paragraph(1)[0..150] }
|
|
profile_image { File.open("#{Rails.root}/app/assets/images/android-icon-36x36.png") }
|
|
nav_image { Faker::Avatar.image }
|
|
url { Faker::Internet.url }
|
|
slug { "org#{rand(10_000)}" }
|
|
github_username { "org#{rand(10_000)}" }
|
|
twitter_username { "org#{rand(10_000)}" }
|
|
bg_color_hex { Faker::Color.hex_color }
|
|
text_color_hex { Faker::Color.hex_color }
|
|
proof { Faker::Hipster.sentence }
|
|
end
|
|
end
|