debian-mirror-gitlab/spec/factories/snippet_repositories.rb
2020-03-09 13:42:32 +05:30

12 lines
320 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :snippet_repository do
snippet
after(:build) do |snippet_repository, _|
snippet_repository.shard_name = snippet_repository.snippet.repository_storage
snippet_repository.disk_path = snippet_repository.snippet.disk_path
end
end
end