lib/decidim/decidim_awesome/test/factories.rb in decidim-decidim_awesome-0.7.2 vs lib/decidim/decidim_awesome/test/factories.rb in decidim-decidim_awesome-0.8.0
- old
+ new
@@ -13,11 +13,11 @@
factory :config_constraint, class: "Decidim::DecidimAwesome::ConfigConstraint" do
settings { { Faker::Hacker.noun => Faker::Hacker.noun } }
awesome_config { create :awesome_config }
end
- factory :editor_image, class: "Decidim::DecidimAwesome::EditorImage" do
- image { Decidim::Dev.test_file("city.jpeg", "image/jpeg") }
+ factory :awesome_editor_image, class: "Decidim::DecidimAwesome::EditorImage" do
+ file { Decidim::Dev.test_file("city.jpeg", "image/jpeg") }
path { Faker::Internet.url(host: "", scheme: "") }
author { create :user }
organization { create :organization }
end