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
|
2011-10-26 18:46:25 +05:00
|
|
|
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
|
|
|
|
|
2011-10-26 18:46:25 +05:00
|
|
|
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
|
2012-04-23 15:32:56 +03:00
|
|
|
|
|
|
|
def satellite
|
|
|
|
@satellite ||= FakeSatellite.new
|
|
|
|
end
|
2011-10-09 00:36:38 +03:00
|
|
|
end
|
|
|
|
|
2011-10-26 18:46:25 +05:00
|
|
|
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
|
|
|
|
|
|
|
|
class UsersProject
|
2011-12-05 09:43:53 +02:00
|
|
|
def update_repository
|
2011-10-09 00:36:38 +03:00
|
|
|
true
|
|
|
|
end
|
|
|
|
end
|
2012-04-23 15:32:56 +03:00
|
|
|
|
|
|
|
class FakeSatellite
|
|
|
|
def exists?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
|
|
|
|
def create
|
|
|
|
true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|