debian-mirror-gitlab/spec/factories/commits.rb

13 lines
237 B
Ruby
Raw Normal View History

2016-06-02 11:05:42 +05:30
require_relative '../support/repo_helpers'
FactoryGirl.define do
factory :commit do
git_commit RepoHelpers.sample_commit
project factory: :empty_project
initialize_with do
new(git_commit, project)
end
end
end