diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-01 09:21:31 +0300 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-04-01 09:21:31 +0300 |
| commit | 7bb71bb088e17578482e7f934147b0fd11c7ad0e (patch) | |
| tree | 2e44c8dfe576057940ed71326c7f0434a8c1a37a /spec/support | |
| parent | 458631c5ba8c830021bd7c219affdb0afe6f0efe (diff) | |
| download | gitlab-ce-7bb71bb088e17578482e7f934147b0fd11c7ad0e.tar.gz | |
Fix stubbed repo
Diffstat (limited to 'spec/support')
| -rw-r--r-- | spec/support/stubbed_repository.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/spec/support/stubbed_repository.rb b/spec/support/stubbed_repository.rb index 68c380e6f4f..3dfdb3539fb 100644 --- a/spec/support/stubbed_repository.rb +++ b/spec/support/stubbed_repository.rb @@ -10,7 +10,7 @@ class Project if path == "empty" || !path nil else - GitLabTestRepo.new(path_with_namespace) + GitLabTestRepo.new(Rails.root.join('tmp', 'repositories', 'gitlabhq'), 'master') end end @@ -39,11 +39,7 @@ class MergeRequest end end -class GitLabTestRepo < Gitlab::Git::Repository - def repo - @repo ||= Grit::Repo.new(Rails.root.join('tmp', 'repositories', 'gitlabhq')) - end - +class GitLabTestRepo < Repository # patch repo size (in mb) def size 12.45 |
