gitlabhq/spec/monkeypatch.rb

42 lines
509 B
Ruby
Raw Normal View History

2011-12-05 09:43:53 +02:00
# Stubbing Project <-> git host path
2011-10-09 00:36:38 +03:00
# create project using Factory only
class Project
2011-12-05 09:43:53 +02:00
def update_repository
2011-10-09 00:36:38 +03:00
true
end
2011-12-05 09:43:53 +02:00
def update_repository
2011-10-09 00:36:38 +03:00
true
end
def path_to_repo
2011-10-09 22:55:06 +03:00
File.join(Rails.root, "tmp", "tests", path)
2011-10-09 00:36:38 +03:00
end
end
class Key
2011-12-05 09:43:53 +02:00
def update_repository
2011-10-09 00:36:38 +03:00
true
end
2011-12-05 09:43:53 +02:00
def repository_delete_key
2011-10-09 00:36:38 +03:00
true
end
end
2011-12-30 15:14:14 +02:00
class DeployKey
def update_repository
true
end
def repository_delete_key
true
end
end
2011-10-09 00:36:38 +03:00
class UsersProject
2011-12-05 09:43:53 +02:00
def update_repository
2011-10-09 00:36:38 +03:00
true
end
end