2016-04-13 09:25:42 +00:00
|
|
|
require_relative '../support/repo_helpers'
|
|
|
|
|
|
|
|
FactoryGirl.define do
|
|
|
|
factory :commit do
|
|
|
|
git_commit RepoHelpers.sample_commit
|
|
|
|
project factory: :empty_project
|
2017-05-31 13:43:19 +00:00
|
|
|
author { build(:author) }
|
2016-04-13 09:25:42 +00:00
|
|
|
|
|
|
|
initialize_with do
|
|
|
|
new(git_commit, project)
|
|
|
|
end
|
2017-01-18 10:38:59 +00:00
|
|
|
|
|
|
|
trait :without_author do
|
2017-05-31 13:43:19 +00:00
|
|
|
author nil
|
2017-01-18 10:38:59 +00:00
|
|
|
end
|
2016-04-13 09:25:42 +00:00
|
|
|
end
|
|
|
|
end
|