factory :repository do
userinfo = {
time: Time.now
}
message = 'Some commit message'
commit_add1 = git_repository.commit_file(userinfo, File.read(File.join(fixture_path, 'cat1.clif')), filepath1, message)
commit_add2 = git_repository.commit_file(userinfo, File.read(File.join(fixture_path, filepath2)), filepath2, message)
commit_add3 = git_repository.commit_file(userinfo, File.read(File.join(fixture_path, 'cat2.clif')), filepath1, message)
repository.remote_type ||= 'mirror'
repository.source_type = 'git'
end
end
repository.remote_type ||= 'mirror'
repository.source_type = 'git'
end
end
end
permission = create :permission, subject: editor,
end
end
end
end