857d039145
Signed-off-by: Rémy Coutable <remy@rymai.me>
17 lines
322 B
Ruby
17 lines
322 B
Ruby
require_relative '../support/repo_helpers'
|
|
|
|
FactoryGirl.define do
|
|
factory :commit do
|
|
git_commit RepoHelpers.sample_commit
|
|
project factory: :empty_project
|
|
author { build(:author) }
|
|
|
|
initialize_with do
|
|
new(git_commit, project)
|
|
end
|
|
|
|
trait :without_author do
|
|
author nil
|
|
end
|
|
end
|
|
end
|