lib/decidim/conferences/test/factories.rb in decidim-conferences-0.25.1 vs lib/decidim/conferences/test/factories.rb in decidim-conferences-0.25.2
- old
+ new
@@ -119,10 +119,13 @@
position { Decidim::Faker::Localized.word }
affiliation { Decidim::Faker::Localized.word }
short_bio { generate_localized_title }
twitter_handle { Faker::Internet.user_name }
personal_url { Faker::Internet.url }
- avatar { Decidim::Dev.test_file("avatar.jpg", "image/jpeg") }
+
+ trait :with_avatar do
+ avatar { Decidim::Dev.test_file("avatar.jpg", "image/jpeg") }
+ end
trait :with_user do
user { create(:user, organization: conference.organization) }
end