summaryrefslogtreecommitdiff
path: root/spec/monkeypatch.rb
diff options
context:
space:
mode:
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