repository_factory.rb revision 58b5a7a2ccc34f0265e7c4ba777ca17a21658863
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.source_type = 'git'
end
end
repository.source_type = 'git'
end
end
end
end