summaryrefslogtreecommitdiff
path: root/spec/monkeypatch.rb
blob: e630cc10d316ef8a5775455350231025fd3dc69c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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