summaryrefslogtreecommitdiff
path: root/spec/support/monkeypatch.rb
blob: 04bbb6fb6808ec44fbea71101511c6646725955e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Stubbing Project <-> git host path
# create project using Factory only
class Project
  def path_to_repo
    File.join(Rails.root, "tmp", "tests", path)
  end

  def satellite
    @satellite ||= FakeSatellite.new
  end
end

class FakeSatellite
  def exists?
    true
  end

  def create
    true
  end
end