Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

342 B
Raw Blame
FactoryBot.define do
  factory :avatar_attachment, class: "Attachment" do
    author       factory: :user
    container    factory: :work_package
    description  { "avatar" }
    filename     { "avatar.jpg" }
    content_type { "image/jpeg" }
    file do
      File.open(File.expand_path("../fixtures/valid.jpg", __dir__))
    end
  end
end