Few more fixes after removing roles

This commit is contained in:
Dmitriy Zaporozhets 2013-01-03 00:01:08 +02:00
parent cac7723451
commit 40a956eb68
5 changed files with 2 additions and 19 deletions

View file

@ -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)