summaryrefslogtreecommitdiff
path: root/spec/monkeypatch.rb
diff options
context:
space:
mode:
authorgitlabhq <m@gitlabhq.com>2011-10-09 00:36:38 +0300
committergitlabhq <m@gitlabhq.com>2011-10-09 00:36:38 +0300
commit9ba1224867665844b117fa037e1465bb706b3685 (patch)
tree52fbfc1cdb55df21843965479c97be0c91121a9a /spec/monkeypatch.rb
parent93efff945215a4407afcaf0cba15ac601b56df0d (diff)
downloadgitlab-ce-9ba1224867665844b117fa037e1465bb706b3685.tar.gz
init commit
Diffstat (limited to 'spec/monkeypatch.rb')
-rw-r--r--spec/monkeypatch.rb31
1 files changed, 31 insertions, 0 deletions
diff --git a/spec/monkeypatch.rb b/spec/monkeypatch.rb
new file mode 100644
index 00000000000..e630cc10d31
--- /dev/null
+++ b/spec/monkeypatch.rb
@@ -0,0 +1,31 @@
+# Stubbing Project <-> gitosis path
+# create project using Factory only
+class Project
+ def update_gitosis_project
+ true
+ end
+
+ def update_gitosis
+ true
+ end
+
+ def path_to_repo
+ "/tmp/" + path
+ end
+end
+
+class Key
+ def update_gitosis
+ true
+ end
+
+ def gitosis_delete_key
+ true
+ end
+end
+
+class UsersProject
+ def update_gitosis_project
+ true
+ end
+end