diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-03 00:01:08 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-03 00:01:08 +0200 |
commit | 40a956eb6825f2bbca06e9f24c1fb24dc71a1ecd (patch) | |
tree | 0b390d11b67df0b1df4fc4376ff3c9c75ddd45af /spec/support | |
parent | cac7723451e575ce39a6930990178450a2a972f0 (diff) | |
download | gitlab-ce-40a956eb6825f2bbca06e9f24c1fb24dc71a1ecd.tar.gz |
Few more fixes after removing roles
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/stubbed_repository.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/support/stubbed_repository.rb b/spec/support/stubbed_repository.rb index 5bf3ea46099..ad88dd77a4f 100644 --- a/spec/support/stubbed_repository.rb +++ b/spec/support/stubbed_repository.rb @@ -1,6 +1,6 @@ # Stubs out all Git repository access done by models so that specs can run # against fake repositories without Grit complaining that they don't exist. -module StubbedRepository +class Project def path_to_repo if new_record? || path == 'newproject' # There are a couple Project specs and features that expect the Project's @@ -27,5 +27,3 @@ module StubbedRepository end end end - -Project.send(:include, StubbedRepository) |